puma 3.11.2-java → 3.11.3-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 +4 -4
- data/History.md +7 -0
- data/lib/puma/const.rb +1 -1
- data/lib/puma/minissl.rb +6 -0
- data/lib/puma/server.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3819cb477a7e5ec23c1c7ffaa4440e10be6a3afb
|
4
|
+
data.tar.gz: ff65b4ed78b9f8ac1da4b29bead7ee6bc475a273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beeff04ff739d529f63f8fc4494b5294ba5203d65b4ea600a1f6650df664b9fba4e816c21e9cf903e35d326a8a933cd321435e02a884d447ee05718960acf2b1
|
7
|
+
data.tar.gz: f9268a5d8a07b71c719cfe9c2a4510267a3b4b8a3c3f37c5edf3adc64f582e97a613a0fb9566691cf4798ac5e5f5e8b738ebdef85330734b13ad0e43ce772971
|
data/History.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 3.11.3 / 2018-03-05
|
2
|
+
|
3
|
+
* 3 bugfixes:
|
4
|
+
* Add closed? to MiniSSL::Socket for use in reactor (#1510)
|
5
|
+
* Handle EOFError at the toplevel of the server threads (#1524) (#1507)
|
6
|
+
* Deal with zero sized bodies when using SSL (#1483)
|
7
|
+
|
1
8
|
## 3.11.2 / 2018-01-19
|
2
9
|
|
3
10
|
* 1 bugfix:
|
data/lib/puma/const.rb
CHANGED
@@ -98,7 +98,7 @@ module Puma
|
|
98
98
|
# too taxing on performance.
|
99
99
|
module Const
|
100
100
|
|
101
|
-
PUMA_VERSION = VERSION = "3.11.
|
101
|
+
PUMA_VERSION = VERSION = "3.11.3".freeze
|
102
102
|
CODE_NAME = "Love Song".freeze
|
103
103
|
PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze
|
104
104
|
|
data/lib/puma/minissl.rb
CHANGED
@@ -16,6 +16,10 @@ module Puma
|
|
16
16
|
@socket
|
17
17
|
end
|
18
18
|
|
19
|
+
def closed?
|
20
|
+
@socket.closed?
|
21
|
+
end
|
22
|
+
|
19
23
|
def readpartial(size)
|
20
24
|
while true
|
21
25
|
output = @engine.read
|
@@ -77,6 +81,8 @@ module Puma
|
|
77
81
|
end
|
78
82
|
|
79
83
|
def write(data)
|
84
|
+
return 0 if data.empty?
|
85
|
+
|
80
86
|
need = data.bytesize
|
81
87
|
|
82
88
|
while true
|
data/lib/puma/server.rb
CHANGED
@@ -295,7 +295,7 @@ module Puma
|
|
295
295
|
client.close
|
296
296
|
|
297
297
|
@events.parse_error self, client.env, e
|
298
|
-
rescue ConnectionError
|
298
|
+
rescue ConnectionError, EOFError
|
299
299
|
client.close
|
300
300
|
else
|
301
301
|
if process_now
|
@@ -755,8 +755,8 @@ module Puma
|
|
755
755
|
|
756
756
|
begin
|
757
757
|
res_body.each do |part|
|
758
|
+
next if part.bytesize.zero?
|
758
759
|
if chunked
|
759
|
-
next if part.bytesize.zero?
|
760
760
|
fast_write client, part.bytesize.to_s(16)
|
761
761
|
fast_write client, line_ending
|
762
762
|
fast_write client, part
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.11.
|
4
|
+
version: 3.11.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Evan Phoenix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well.
|
14
14
|
email:
|