diff options
author | Ingela Anderton Andin <[email protected]> | 2013-02-19 10:06:13 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-02-20 17:43:18 +0100 |
commit | 973e37f099960339c6ba6c16318fb4d318c259e9 (patch) | |
tree | 7a6369b7dc4124e6c76b3df9844facffaaa06fc2 /lib/ssl/src | |
parent | 3bf28b18cecfc1ad35cb7a1a1120b2adeeeb5f73 (diff) | |
download | otp-973e37f099960339c6ba6c16318fb4d318c259e9.tar.gz otp-973e37f099960339c6ba6c16318fb4d318c259e9.tar.bz2 otp-973e37f099960339c6ba6c16318fb4d318c259e9.zip |
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, |