diff options
author | Ingela Anderton Andin <[email protected]> | 2013-02-21 15:45:46 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-02-21 15:45:46 +0100 |
commit | 4aa03cb5b54435c9007c22db1e346655a36e2948 (patch) | |
tree | 87b78d715eb40bf7268ba18979dd86f97b0e7714 /lib/ssl/src | |
parent | 2c0ecc9a21b282b2b08c6594fa2d77dd0bd7aa00 (diff) | |
parent | 973e37f099960339c6ba6c16318fb4d318c259e9 (diff) | |
download | otp-4aa03cb5b54435c9007c22db1e346655a36e2948.tar.gz otp-4aa03cb5b54435c9007c22db1e346655a36e2948.tar.bz2 otp-4aa03cb5b54435c9007c22db1e346655a36e2948.zip |
Merge branch 'ia/ssl/econnaborted'
* ia/ssl/econnaborted:
ssl: Fatal close alert makes more sense than handshake failiure at econnaborted
Diffstat (limited to 'lib/ssl/src')
-rw-r--r-- | lib/ssl/src/ssl_connection.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index 52b765f191..8f4fd88d42 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -987,7 +987,7 @@ handle_info({ErrorTag, Socket, econnaborted}, StateName, #state{socket = Socket, transport_cb = Transport, start_or_recv_from = StartFrom, role = Role, error_tag = ErrorTag} = State) when StateName =/= connection -> - alert_user(Transport, Socket, StartFrom, ?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE), Role), + alert_user(Transport, Socket, StartFrom, ?ALERT_REC(?FATAL, ?CLOSE_NOTIFY), Role), {stop, normal, State}; handle_info({ErrorTag, Socket, Reason}, StateName, #state{socket = Socket, |