Skip to content

Commit

Permalink
fix: handle econnaborted return from async_accept
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Nov 22, 2023
1 parent 40356b1 commit cbf63b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/esockd_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ handle_event(internal, begin_waiting, waiting, State = #state{lsock = LSock}) ->
Reason =:= enfile
->
{next_state, suspending, State, {state_timeout, 1000, begin_waiting}};
{error, econnaborted} ->
{next_state, waiting, State, {next_event, internal, begin_waiting}};
{error, closed} ->
{stop, normal, State};
{error, Reason} ->
Expand Down

0 comments on commit cbf63b5

Please sign in to comment.