1
0
Fork 0
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:
Vyacheslav Alexeev 2020-05-10 18:43:42 +03:00
parent 265f638d2b
commit 2d7ff5da50
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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
}