puma 6.2.0-java → 6.2.1-java

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1730e627fcd3be4eb2040645996a10b30950aa494ef94fa33e707d54a8dc79a3
4
- data.tar.gz: e0cb48ed002c40333aafa563e5ac0cb54a33efd707077f246d339afa638b52aa
3
+ metadata.gz: 6659952663ca1247a27a1d731a96489881d0db6bcdeb15d17bd92d90ece41064
4
+ data.tar.gz: 311b9aad92753880cd75092f32e0638493d0a4f29a835ad448af76f2bca2a656
5
5
  SHA512:
6
- metadata.gz: 4d8e02f5f5cb53671fd3c4fde168816d7c47845401563262aef64b37868a0ceb19ae9186c02de42ccfcf996165fdd7309b4e0ed461f758bb2785405ea4908673
7
- data.tar.gz: 23c3cc1a5583a44c5d46656afb5b1271dfb6f5100e01ca8b6d889e025829429f7495962b5d7c1fbff8cd7e44999ad5b3b18ba3f4fe6bab6757b8d3e328d7b5af
6
+ metadata.gz: 69e663cc10eb939cf94cf0adce7c5fe65b24974ac285cf198f98dfc348fce68cc46cdf821f0f2ed3d9924d8bdadcf583242c04d3f6d1f0adae3cb802a1e52702
7
+ data.tar.gz: e0d54567b32b35b8fc53a0f9829b664b1003e24af534bf8c1d8dc01bb2dc018c789a4f0b7975fbfa72687c19827f42b75024b4f5fa2884db7d4775b1ce40698f
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 6.2.1 / 2023-03-31
2
+
3
+ * Bugfixes
4
+ * Fix java 8 compatibility ([#3109], [#3108])
5
+ * Always write io_buffer when in "enum bodies" branch. ([#3113], [#3112])
6
+ * Fix warn_if_in_single_mode incorrect message ([#3111])
7
+
1
8
  ## 6.2.0 / 2023-03-29
2
9
 
3
10
  * Features
@@ -1967,6 +1974,11 @@ be added back in a future date when a java Puma::MiniSSL is added.
1967
1974
  * Bugfixes
1968
1975
  * Your bugfix goes here <Most recent on the top, like GitHub> (#Github Number)
1969
1976
 
1977
+ [#3109]:https://github.com/puma/puma/pull/3109 "PR by @ahorek, merged 2023-03-31"
1978
+ [#3108]:https://github.com/puma/puma/issues/3108 "Issue by @treviateo, closed 2023-03-31"
1979
+ [#3113]:https://github.com/puma/puma/pull/3113 "PR by @collinsauve, merged 2023-03-31"
1980
+ [#3112]:https://github.com/puma/puma/issues/3112 "Issue by @dmke, closed 2023-03-31"
1981
+ [#3111]:https://github.com/puma/puma/pull/3111 "PR by @adzap, merged 2023-03-30"
1970
1982
  [#2770]:https://github.com/puma/puma/pull/2770 "PR by @vzajkov, merged 2023-03-29"
1971
1983
  [#2511]:https://github.com/puma/puma/issues/2511 "Issue by @jchristie55332, closed 2021-12-12"
1972
1984
  [#3089]:https://github.com/puma/puma/pull/3089 "PR by @Vuta, merged 2023-03-06"
data/lib/puma/const.rb CHANGED
@@ -99,7 +99,7 @@ module Puma
99
99
  # too taxing on performance.
100
100
  module Const
101
101
 
102
- PUMA_VERSION = VERSION = "6.2.0"
102
+ PUMA_VERSION = VERSION = "6.2.1"
103
103
  CODE_NAME = "Speaking of Now"
104
104
 
105
105
  PUMA_SERVER_STRING = ["puma", PUMA_VERSION, CODE_NAME].join(" ").freeze
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
- fast_write_str socket, CLOSE_CHUNKED
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.2.1
5
5
  platform: java
6
6
  authors:
7
7
  - Evan Phoenix