mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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} ->
|
{ok, TLSData} ->
|
||||||
{noreply, process_data(TLSData, State),
|
{noreply, process_data(TLSData, State),
|
||||||
?HIBERNATE_TIMEOUT};
|
?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;
|
end;
|
||||||
ezlib ->
|
ezlib ->
|
||||||
case ezlib:recv_data(Socket, Data) of
|
case ezlib:recv_data(Socket, Data) of
|
||||||
|
Loading…
Reference in New Issue
Block a user