mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Report TLS errors
This commit is contained in:
parent
7976d3eb48
commit
51508a9fc3
@ -243,7 +243,13 @@ handle_info({Tag, _TCPSocket, Data},
|
||||
{ok, TLSData} ->
|
||||
{noreply, process_data(TLSData, State),
|
||||
?HIBERNATE_TIMEOUT};
|
||||
{error, _Reason} -> {stop, normal, State}
|
||||
{error, Reason} ->
|
||||
if is_binary(Reason) ->
|
||||
?ERROR_MSG("TLS error = ~s", [Reason]);
|
||||
true ->
|
||||
ok
|
||||
end,
|
||||
{stop, normal, State}
|
||||
end;
|
||||
ezlib ->
|
||||
case ezlib:recv_data(Socket, Data) of
|
||||
|
Loading…
Reference in New Issue
Block a user