Skip to content

Commit

Permalink
Silence connection errors in the reactor. Fixes #959
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Apr 22, 2016
1 parent 9ad34ec commit 2e9ee6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/puma/reactor.rb
Expand Up @@ -75,6 +75,15 @@ def run_internal
sockets.delete c
end

# Don't report these to the lowlevel_error handler, otherwise
# will be flooding them with errors when persistent connections
# are closed.
rescue ConnectionError
c.write_500
c.close

sockets.delete c

# SSL handshake failure
rescue MiniSSL::SSLError => e
@server.lowlevel_error(e, c.env)
Expand Down

0 comments on commit 2e9ee6d

Please sign in to comment.