puma 3.11.1 → 3.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6e4639dc3ace8a60125068633a63025ca87ad00
4
- data.tar.gz: 61b9f2e83b05bafad0bdf79c325e3a0c27cae321
3
+ metadata.gz: ffa53258e98287ae926e61529a1e91b79ded9a23
4
+ data.tar.gz: 1c055094a31d86df48ec6b4840585fb1f38b9d73
5
5
  SHA512:
6
- metadata.gz: 12956a78e42981a073760503849653685bb8e73f1a00493038e38aae34fd23901e35e1abf5ef3a08517e736ea8e1c72912dab1f87e47b4feebd3bd3b00f79452
7
- data.tar.gz: 0c5e19a059c67816cc74f705193a0dfd6dadb52eae35526150f754a6f6b359b8243fb602c43f6bcc8fd0f13d440f512497d3c9a349eb48a4dbdb93efa6949651
6
+ metadata.gz: 015f85a58ce86102cef24ad40360f43d01f220fbb2b08850113ef1eeea85158d7c316af4641c7de2de88829c99dd87b633fdbf7711b84f7a7f6442a0a832f3a7
7
+ data.tar.gz: 46d3b3ac6c5adcf6f5a81f7166a7aa2a9b361c629653ffe1d21df49fdbadb90bf47ffb6e5b48063af1a3ae4037da4c92a3dd1b36ac805c5ede98c4f13a504c47
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.11.2 / 2018-01-19
2
+
3
+ * 1 bugfix:
4
+ * Deal with read\_nonblock returning nil early
5
+
1
6
  ## 3.11.1 / 2018-01-18
2
7
 
3
8
  * 1 bugfix:
@@ -284,6 +284,14 @@ module Puma
284
284
  raise ConnectionError, "Connection error detected during read"
285
285
  end
286
286
 
287
+ # No data means a closed socket
288
+ unless data
289
+ @buffer = nil
290
+ @requests_served += 1
291
+ @ready = true
292
+ raise EOFError
293
+ end
294
+
287
295
  if @buffer
288
296
  @buffer << data
289
297
  else
@@ -313,6 +321,14 @@ module Puma
313
321
  raise e
314
322
  end
315
323
 
324
+ # No data means a closed socket
325
+ unless data
326
+ @buffer = nil
327
+ @requests_served += 1
328
+ @ready = true
329
+ raise EOFError
330
+ end
331
+
316
332
  if @buffer
317
333
  @buffer << data
318
334
  else
@@ -98,7 +98,7 @@ module Puma
98
98
  # too taxing on performance.
99
99
  module Const
100
100
 
101
- PUMA_VERSION = VERSION = "3.11.1".freeze
101
+ PUMA_VERSION = VERSION = "3.11.2".freeze
102
102
  CODE_NAME = "Love Song".freeze
103
103
  PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze
104
104
 
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: 3.11.1
4
+ version: 3.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Phoenix