aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-02-05 14:50:40 +0100
committerIngela Anderton Andin <[email protected]>2019-02-05 14:50:40 +0100
commite8ddbc58fda4ca07ff1f2f4d3c77ecae036ee513 (patch)
treeb5e8608d2206f7710addc53614b979632d3c83e0
parent6c7c3a1660fdb4e929a2f60e026edf9585a6a2bb (diff)
parenta1dacff6a68d905b7620debfbdd401e50fad869e (diff)
downloadotp-e8ddbc58fda4ca07ff1f2f4d3c77ecae036ee513.tar.gz
otp-e8ddbc58fda4ca07ff1f2f4d3c77ecae036ee513.tar.bz2
otp-e8ddbc58fda4ca07ff1f2f4d3c77ecae036ee513.zip
Merge branch 'maint'
-rw-r--r--lib/ssl/src/dtls_packet_demux.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_packet_demux.erl b/lib/ssl/src/dtls_packet_demux.erl
index e03a4e9cb9..afcd4af000 100644
--- a/lib/ssl/src/dtls_packet_demux.erl
+++ b/lib/ssl/src/dtls_packet_demux.erl
@@ -145,11 +145,11 @@ handle_info({Transport, Socket, IP, InPortNo, _} = Msg, #state{listener = Socket
%% UDP socket does not have a connection and should not receive an econnreset
%% This does however happens on some windows versions. Just ignoring it
%% appears to make things work as expected!
-handle_info({Error, Socket, econnreset = Error}, #state{listener = Socket, transport = {_,_,_, udp_error}} = State) ->
+handle_info({udp_error, Socket, econnreset = Error}, #state{listener = Socket, transport = {_,_,_, udp_error}} = State) ->
Report = io_lib:format("Ignore SSL UDP Listener: Socket error: ~p ~n", [Error]),
?LOG_NOTICE(Report),
{noreply, State};
-handle_info({Error, Socket, Error}, #state{listener = Socket, transport = {_,_,_, Error}} = State) ->
+handle_info({ErrorTag, Socket, Error}, #state{listener = Socket, transport = {_,_,_, ErrorTag}} = State) ->
Report = io_lib:format("SSL Packet muliplxer shutdown: Socket error: ~p ~n", [Error]),
?LOG_NOTICE(Report),
{noreply, State#state{close=true}};