puma 6.2.0 → 6.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puma might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.md +19 -0
- data/README.md +1 -1
- data/lib/puma/const.rb +1 -1
- data/lib/puma/dsl.rb +1 -1
- data/lib/puma/request.rb +10 -3
- data/lib/rack/handler/puma.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5bf04e3d05e490359fd54acb971ea4316fbf6b51eec1c4d572359dd985eea92
|
4
|
+
data.tar.gz: a85be9bb75fd16c13600f918fedad71cdd9950293af84464d488ad5adbdc7cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db99880324d78555ff6de88b5fd9eb37b5e169b2109c7021ca2a0f6325ce704f56d6ea2155099e7cee2bc71a8db73bf9fd12b97142c461c9e20ecbf4e7821463
|
7
|
+
data.tar.gz: 210d6a0a0cdd3922a792fd5311a4ae95ea6f3f1b04d5bd74daf316a55259f2c0f890b156d17812266ebf31a1a42ac860085f25bf5262a8556d987e4f5d3bc0f1
|
data/History.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 6.2.2 / 2023-04-17
|
2
|
+
|
3
|
+
* Bugfixes
|
4
|
+
* Fix Rack-related NameError by adding :: operator ([#3118], [#3117])
|
5
|
+
|
6
|
+
## 6.2.1 / 2023-03-31
|
7
|
+
|
8
|
+
* Bugfixes
|
9
|
+
* Fix java 8 compatibility ([#3109], [#3108])
|
10
|
+
* Always write io_buffer when in "enum bodies" branch. ([#3113], [#3112])
|
11
|
+
* Fix warn_if_in_single_mode incorrect message ([#3111])
|
12
|
+
|
1
13
|
## 6.2.0 / 2023-03-29
|
2
14
|
|
3
15
|
* Features
|
@@ -1967,6 +1979,13 @@ be added back in a future date when a java Puma::MiniSSL is added.
|
|
1967
1979
|
* Bugfixes
|
1968
1980
|
* Your bugfix goes here <Most recent on the top, like GitHub> (#Github Number)
|
1969
1981
|
|
1982
|
+
[#3118]:https://github.com/puma/puma/pull/3118 "PR by @ninoseki, merged 2023-04-01"
|
1983
|
+
[#3117]:https://github.com/puma/puma/issues/3117 "Issue by @ninoseki, closed 2023-04-01"
|
1984
|
+
[#3109]:https://github.com/puma/puma/pull/3109 "PR by @ahorek, merged 2023-03-31"
|
1985
|
+
[#3108]:https://github.com/puma/puma/issues/3108 "Issue by @treviateo, closed 2023-03-31"
|
1986
|
+
[#3113]:https://github.com/puma/puma/pull/3113 "PR by @collinsauve, merged 2023-03-31"
|
1987
|
+
[#3112]:https://github.com/puma/puma/issues/3112 "Issue by @dmke, closed 2023-03-31"
|
1988
|
+
[#3111]:https://github.com/puma/puma/pull/3111 "PR by @adzap, merged 2023-03-30"
|
1970
1989
|
[#2770]:https://github.com/puma/puma/pull/2770 "PR by @vzajkov, merged 2023-03-29"
|
1971
1990
|
[#2511]:https://github.com/puma/puma/issues/2511 "Issue by @jchristie55332, closed 2021-12-12"
|
1972
1991
|
[#3089]:https://github.com/puma/puma/pull/3089 "PR by @Vuta, merged 2023-03-06"
|
data/README.md
CHANGED
@@ -375,7 +375,7 @@ Community guides:
|
|
375
375
|
|
376
376
|
* [puma-metrics](https://github.com/harmjanblok/puma-metrics) — export Puma metrics to Prometheus
|
377
377
|
* [puma-plugin-statsd](https://github.com/yob/puma-plugin-statsd) — send Puma metrics to statsd
|
378
|
-
* [puma-plugin-systemd](https://github.com/sj26/puma-plugin-systemd) — deeper integration with systemd for notify, status and watchdog
|
378
|
+
* [puma-plugin-systemd](https://github.com/sj26/puma-plugin-systemd) — deeper integration with systemd for notify, status and watchdog. Puma 5.1.0 integrated notify and watchdog, which probably conflicts with this plugin. Puma 6.1.0 added status support which obsoletes the plugin entirely.
|
379
379
|
* [puma-plugin-telemetry](https://github.com/babbel/puma-plugin-telemetry) - telemetry plugin for Puma offering various targets to publish
|
380
380
|
|
381
381
|
### Monitoring
|
data/lib/puma/const.rb
CHANGED
data/lib/puma/dsl.rb
CHANGED
@@ -1103,7 +1103,7 @@ module Puma
|
|
1103
1103
|
if (@options[:workers] || 0) == 0
|
1104
1104
|
log_string =
|
1105
1105
|
"Warning: You specified code to run in a `#{hook_name}` block, " \
|
1106
|
-
"but Puma is configured to run in cluster mode, " \
|
1106
|
+
"but Puma is not configured to run in cluster mode (worker count > 0 ), " \
|
1107
1107
|
"so your `#{hook_name}` block did not run"
|
1108
1108
|
|
1109
1109
|
LogWriter.stdio.log(log_string)
|
data/lib/puma/request.rb
CHANGED
@@ -180,7 +180,7 @@ module Puma
|
|
180
180
|
if !content_length && !resp_info[:transfer_encoding] && status != 204
|
181
181
|
if res_body.respond_to?(:to_ary) && (array_body = res_body.to_ary) &&
|
182
182
|
array_body.is_a?(Array)
|
183
|
-
body = array_body
|
183
|
+
body = array_body.compact
|
184
184
|
content_length = body.sum(&:bytesize)
|
185
185
|
elsif res_body.is_a?(File) && res_body.respond_to?(:size)
|
186
186
|
body = res_body
|
@@ -363,12 +363,19 @@ module Puma
|
|
363
363
|
else
|
364
364
|
# for enum bodies
|
365
365
|
if chunked
|
366
|
+
empty_body = true
|
366
367
|
body.each do |part|
|
367
|
-
next if (byte_size = part.bytesize).zero?
|
368
|
+
next if part.nil? || (byte_size = part.bytesize).zero?
|
369
|
+
empty_body = false
|
368
370
|
io_buffer.append byte_size.to_s(16), LINE_END, part, LINE_END
|
369
371
|
fast_write_str socket, io_buffer.read_and_reset
|
370
372
|
end
|
371
|
-
|
373
|
+
if empty_body
|
374
|
+
io_buffer << CLOSE_CHUNKED
|
375
|
+
fast_write_str socket, io_buffer.read_and_reset
|
376
|
+
else
|
377
|
+
fast_write_str socket, CLOSE_CHUNKED
|
378
|
+
end
|
372
379
|
else
|
373
380
|
fast_write_str socket, io_buffer.read_and_reset
|
374
381
|
body.each do |part|
|
data/lib/rack/handler/puma.rb
CHANGED
@@ -32,7 +32,7 @@ module Puma
|
|
32
32
|
conf = ::Puma::Configuration.new(options, default_options.merge({events: @events})) do |user_config, file_config, default_config|
|
33
33
|
if options.delete(:Verbose)
|
34
34
|
require 'rack/common_logger'
|
35
|
-
app = Rack::CommonLogger.new(app, STDOUT)
|
35
|
+
app = ::Rack::CommonLogger.new(app, STDOUT)
|
36
36
|
end
|
37
37
|
|
38
38
|
if options[:environment]
|