1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Silence connection errors in the reactor. Fixes #959

This commit is contained in:
Evan Phoenix 2016-04-22 16:55:06 -07:00
parent 9ad34ecb75
commit 2e9ee6d0fb

View file

@ -75,6 +75,15 @@ module Puma
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)