Skip to content

Commit

Permalink
Report TLS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zinid authored and Christophe Romain committed Mar 20, 2015
1 parent 7976d3e commit 51508a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ejabberd_receiver.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51508a9

Please sign in to comment.