mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Log errors that happen when retrieving http headers in ejabberd_http
It seems that ssl errors can be generated here, so lets have abily to show them instead of swallowing them silently.
This commit is contained in:
parent
e01e528235
commit
16585713f8
@ -193,7 +193,10 @@ receive_headers(#state{trail = Trail} = State) ->
|
||||
Socket = State#state.socket,
|
||||
Data = SockMod:recv(Socket, 0, 300000),
|
||||
case Data of
|
||||
{error, _} -> ok;
|
||||
{error, Error} ->
|
||||
?DEBUG("Error when retrieving http headers ~p: ~p",
|
||||
[State#state.sockmod, Error]),
|
||||
ok;
|
||||
{ok, D} ->
|
||||
parse_headers(State#state{trail = <<Trail/binary, D/binary>>})
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user