Skip to content
Permalink
Browse files
Merge pull request #242 from nickva/acceptor-fix-recycler-error-repor…
…ting

Handle {shutdown, Error} when recycling acceptor pids
  • Loading branch information
etrepum committed May 6, 2022
2 parents 83fd22d + 077b4f8 commit 53114ba91470e1b9d90e3f6fb663ff6bba43619a
Showing 1 changed file with 2 additions and 0 deletions.
@@ -373,6 +373,8 @@ handle_info(Msg, State) when ?is_old_state(State) ->
handle_info(Msg, upgrade_state(State));
handle_info({'EXIT', Pid, normal}, State) ->
{noreply, recycle_acceptor(Pid, State)};
handle_info({'EXIT', Pid, {shutdown, _Error}}, State) ->
{noreply, recycle_acceptor(Pid, State)};
handle_info({'EXIT', Pid, Reason},
State=#mochiweb_socket_server{acceptor_pool=Pool}) ->
case sets:is_element(Pid, Pool) of

0 comments on commit 53114ba

Please sign in to comment.