4.3.11, backport 5.6.2

This commit is contained in:
Nate Berkopec 2022-02-11 10:06:47 -08:00
parent a62754edc7
commit 9c699d9e3b
No known key found for this signature in database
GPG Key ID: 19616755F4328D71
3 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
## 4.3.11 / 2022-02-11
* Security
* Always close the response body (GHSA-rmj8-8hhh-gv5h)
## 4.3.10 / 2021-10-12
* Bugfixes

View File

@ -100,7 +100,7 @@ module Puma
# too taxing on performance.
module Const
PUMA_VERSION = VERSION = "4.3.10".freeze
PUMA_VERSION = VERSION = "4.3.11".freeze
CODE_NAME = "Mysterious Traveller".freeze
PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze

View File

@ -873,11 +873,14 @@ module Puma
end
ensure
uncork_socket client
begin
uncork_socket client
body.close
req.tempfile.unlink if req.tempfile
res_body.close if res_body.respond_to? :close
body.close
req.tempfile.unlink if req.tempfile
ensure
res_body.close if res_body.respond_to? :close
end
after_reply.each { |o| o.call }
end