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:
parent
9ad34ecb75
commit
2e9ee6d0fb
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue