mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
fix server swallow connection error
This commit is contained in:
parent
265f638d2b
commit
2d7ff5da50
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ module Puma
|
|||
# +error+ a connection exception, +env+ the request
|
||||
#
|
||||
def connection_error(error, env, text="HTTP connection error")
|
||||
@debug_logger.error_dump(error: error, env: env, text: text, force: true)
|
||||
@debug_logger.error_dump(error: error, env: env, text: text)
|
||||
end
|
||||
|
||||
# An HTTP parse error has occurred.
|
||||
|
|
|
@ -563,7 +563,7 @@ module Puma
|
|||
|
||||
fast_write client, "\r\n".freeze
|
||||
rescue ConnectionError => e
|
||||
@events.connection_error e, client.env
|
||||
@events.connection_error e, nil
|
||||
# noop, if we lost the socket we just won't send the early hints
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue