Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ce94d7

Browse files
authored
4.3.11, backport 5.6.2 (#2822)
1 parent a62754e commit 4ce94d7

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.3.11 / 2022-02-11
2+
3+
* Security
4+
* Always close the response body (GHSA-rmj8-8hhh-gv5h)
5+
16
## 4.3.10 / 2021-10-12
27

38
* Bugfixes

lib/puma/const.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class UnsupportedOption < RuntimeError
100100
# too taxing on performance.
101101
module Const
102102

103-
PUMA_VERSION = VERSION = "4.3.10".freeze
103+
PUMA_VERSION = VERSION = "4.3.11".freeze
104104
CODE_NAME = "Mysterious Traveller".freeze
105105
PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze
106106

lib/puma/server.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,11 +873,14 @@ def handle_request(req, lines)
873873
end
874874

875875
ensure
876-
uncork_socket client
876+
begin
877+
uncork_socket client
877878

878-
body.close
879-
req.tempfile.unlink if req.tempfile
880-
res_body.close if res_body.respond_to? :close
879+
body.close
880+
req.tempfile.unlink if req.tempfile
881+
ensure
882+
res_body.close if res_body.respond_to? :close
883+
end
881884

882885
after_reply.each { |o| o.call }
883886
end

0 commit comments

Comments
 (0)