Skip to content

Commit 910c448

Browse files
committed
refactor: delete dead-code
esslaccept error reason has been deleted since OTP 16
1 parent c52f640 commit 910c448

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/esockd_acceptor.erl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,9 @@ handle_accept_error(Reason, Msg, #state{sockname = Sockname}) ->
280280
handle_socket_error(closed, State, _StateName) ->
281281
{stop, normal, State};
282282
%% {error, econnaborted} -> accept
283-
%% {error, esslaccept} -> accept
284-
handle_socket_error(Reason, State, suspending) when Reason =:= econnaborted; Reason =:= esslaccept ->
283+
handle_socket_error(Reason, State, suspending) when Reason =:= econnaborted ->
285284
{keep_state, State, {next_event, internal, accept_and_close}};
286-
handle_socket_error(Reason, State, _StateName) when Reason =:= econnaborted; Reason =:= esslaccept ->
285+
handle_socket_error(Reason, State, _StateName) when Reason =:= econnaborted ->
287286
{next_state, waiting, State, {next_event, internal, begin_waiting}};
288287
%% emfile: The per-process limit of open file descriptors has been reached.
289288
%% enfile: The system limit on the total number of open files has been reached.

0 commit comments

Comments
 (0)