mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 15:19:47 +00:00
Don't report tcp socket error as gen_server error
This commit is contained in:
parent
414e7bc037
commit
6bc9253999
1 changed files with 2 additions and 2 deletions
|
|
@ -155,8 +155,8 @@ handle_info({tcp_closed, Sock}, #state{sock = Sock} = S) ->
|
|||
lager:debug("upstream sock closed"),
|
||||
{stop, normal, maybe_close_down(S)};
|
||||
handle_info({tcp_error, Sock, Reason}, #state{sock = Sock} = S) ->
|
||||
lager:info("upstream sock error: ~p", [Reason]),
|
||||
{stop, Reason, maybe_close_down(S)};
|
||||
lager:warning("upstream sock error: ~p", [Reason]),
|
||||
{stop, normal, maybe_close_down(S)};
|
||||
|
||||
handle_info(timeout, #state{timer = Timer, timer_state = TState, listener = Listener} = S) ->
|
||||
case gen_timeout:is_expired(Timer) of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue