Skip to content

Commit

Permalink
refactor: delete dead-code
Browse files Browse the repository at this point in the history
esslaccept error reason has been deleted since OTP 16
  • Loading branch information
zmstone committed Nov 11, 2024
1 parent c52f640 commit 910c448
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/esockd_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,9 @@ handle_accept_error(Reason, Msg, #state{sockname = Sockname}) ->
handle_socket_error(closed, State, _StateName) ->
{stop, normal, State};
%% {error, econnaborted} -> accept
%% {error, esslaccept} -> accept
handle_socket_error(Reason, State, suspending) when Reason =:= econnaborted; Reason =:= esslaccept ->
handle_socket_error(Reason, State, suspending) when Reason =:= econnaborted ->
{keep_state, State, {next_event, internal, accept_and_close}};
handle_socket_error(Reason, State, _StateName) when Reason =:= econnaborted; Reason =:= esslaccept ->
handle_socket_error(Reason, State, _StateName) when Reason =:= econnaborted ->
{next_state, waiting, State, {next_event, internal, begin_waiting}};
%% emfile: The per-process limit of open file descriptors has been reached.
%% enfile: The system limit on the total number of open files has been reached.
Expand Down

0 comments on commit 910c448

Please sign in to comment.