unicorn 5.3.0.pre1 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/GIT-VERSION-GEN +1 -1
- data/lib/unicorn/configurator.rb +2 -0
- data/lib/unicorn/http_request.rb +2 -3
- data/test/exec/test_exec.rb +1 -1
- data/unicorn.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b81793b7bf9db70d6d014404f3d109cbe8528951
|
4
|
+
data.tar.gz: 80747270f849455aa5f6df45bd720452b366a681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b0045616f1243a945a24bf2c4f46f587655ecd24669f5c59b98aa25bef2e6b4a1ff47d580d41a9ad76f2490b09d5433229135cec52c7b7e2293c3086399949
|
7
|
+
data.tar.gz: 9bb45e6d41a3d1a8888b64f127269e67d3101f1ba0d637723820f5a881cc2754e3defcf83e9c98d41f4f25a3a95837be6cbef0538128717aac189ecac6fc9c5a
|
data/GIT-VERSION-GEN
CHANGED
data/lib/unicorn/configurator.rb
CHANGED
@@ -172,6 +172,8 @@ def after_fork(*args, &block)
|
|
172
172
|
# server.logger.error("worker process failure: #{status.inspect}")
|
173
173
|
# end
|
174
174
|
# end
|
175
|
+
#
|
176
|
+
# after_worker_exit is only available in unicorn 5.3.0+
|
175
177
|
def after_worker_exit(*args, &block)
|
176
178
|
set_hook(:after_worker_exit, block_given? ? block : args[0], 3)
|
177
179
|
end
|
data/lib/unicorn/http_request.rb
CHANGED
@@ -29,7 +29,7 @@ class Unicorn::HttpParser
|
|
29
29
|
EMPTY_ARRAY = [].freeze
|
30
30
|
@@input_class = Unicorn::TeeInput
|
31
31
|
@@check_client_connection = false
|
32
|
-
@@tcpi_inspect_ok =
|
32
|
+
@@tcpi_inspect_ok = Socket.const_defined?(:TCP_INFO)
|
33
33
|
|
34
34
|
def self.input_class
|
35
35
|
@@input_class
|
@@ -155,9 +155,8 @@ def closed_state?(state) # :nodoc:
|
|
155
155
|
# work after a client gives up.
|
156
156
|
def check_client_connection(socket) # :nodoc:
|
157
157
|
if Unicorn::TCPClient === socket && @@tcpi_inspect_ok
|
158
|
-
opt = socket.getsockopt(
|
158
|
+
opt = socket.getsockopt(Socket::IPPROTO_TCP, Socket::TCP_INFO).inspect
|
159
159
|
if opt =~ /\bstate=(\S+)/
|
160
|
-
@@tcpi_inspect_ok = true
|
161
160
|
raise Errno::EPIPE, "client closed connection".freeze,
|
162
161
|
EMPTY_ARRAY if closed_state_str?($1)
|
163
162
|
else
|
data/test/exec/test_exec.rb
CHANGED
@@ -122,7 +122,7 @@ def test_sd_listen_fds_emulation
|
|
122
122
|
res = hit(["http://#@addr:#@port/"])
|
123
123
|
assert_equal [ "HI\n" ], res
|
124
124
|
assert_shutdown(pid)
|
125
|
-
|
125
|
+
assert sock.getsockopt(:SOL_SOCKET, :SO_KEEPALIVE).bool,
|
126
126
|
'unicorn should always set SO_KEEPALIVE on inherited sockets'
|
127
127
|
end
|
128
128
|
ensure
|
data/unicorn.gemspec
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
Gem::Specification.new do |s|
|
13
13
|
s.name = %q{unicorn}
|
14
|
-
s.version = (ENV['VERSION'] || '5.3.0
|
14
|
+
s.version = (ENV['VERSION'] || '5.3.0').dup
|
15
15
|
s.authors = ['unicorn hackers']
|
16
16
|
s.summary = 'Rack HTTP server for fast clients and Unix'
|
17
17
|
s.description = File.read('README').split("\n\n")[1]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.0
|
4
|
+
version: 5.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- unicorn hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -283,9 +283,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
283
283
|
version: '3.0'
|
284
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
285
285
|
requirements:
|
286
|
-
- - "
|
286
|
+
- - ">="
|
287
287
|
- !ruby/object:Gem::Version
|
288
|
-
version:
|
288
|
+
version: '0'
|
289
289
|
requirements: []
|
290
290
|
rubyforge_project:
|
291
291
|
rubygems_version: 2.6.10
|