Skip to content

Commit

Permalink
More elaborate exception handling. Fixes puma#2699.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored and MSP-Greg committed Sep 16, 2021
1 parent 319f84d commit 76ad8c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/puma/server.rb
Expand Up @@ -356,7 +356,10 @@ def handle_servers
pool << client
end
end
rescue Object => e
rescue IOError, Errno::EBADF
# In the case that any of the sockets are unexpectedly close.
raise
rescue StandardError => e
@events.unknown_error e, nil, "Listen loop"
end
end
Expand Down

0 comments on commit 76ad8c6

Please sign in to comment.