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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6625aff20e7f744a10b6f9724b1ddb30f60e9b51
4
- data.tar.gz: 0e33bab2037c0dbfdb91bc463bf41dbb502e6f16
3
+ metadata.gz: b81793b7bf9db70d6d014404f3d109cbe8528951
4
+ data.tar.gz: 80747270f849455aa5f6df45bd720452b366a681
5
5
  SHA512:
6
- metadata.gz: 18a1e1143713bc8f4d7491ef3684dc0154bc5e1e335d5d2b8ace3f2ca99cbd57d686c7f03601919d8ebfcb68d4472ad1cc8c5802479a45951af5808fa6c53572
7
- data.tar.gz: '08a6ab6905c240e6fd1e99d26d004b697c76e535ff37832bf71a342ea29fc424a10f790f65ed5496cc10312c3323339dcfe545d3b539130dc6310e6ba81c3d0d'
6
+ metadata.gz: 42b0045616f1243a945a24bf2c4f46f587655ecd24669f5c59b98aa25bef2e6b4a1ff47d580d41a9ad76f2490b09d5433229135cec52c7b7e2293c3086399949
7
+ data.tar.gz: 9bb45e6d41a3d1a8888b64f127269e67d3101f1ba0d637723820f5a881cc2754e3defcf83e9c98d41f4f25a3a95837be6cbef0538128717aac189ecac6fc9c5a
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- DEF_VER = "v5.3.0.pre1"
2
+ DEF_VER = "v5.3.0"
3
3
  CONSTANT = "Unicorn::Const::UNICORN_VERSION"
4
4
  RVF = "lib/unicorn/version.rb"
5
5
  GVF = "GIT-VERSION-FILE"
@@ -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
@@ -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 = true
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(:IPPROTO_TCP, :TCP_INFO).inspect
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
@@ -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
- assert_equal 1, sock.getsockopt(:SOL_SOCKET, :SO_KEEPALIVE).int,
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
@@ -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.pre1').dup
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.pre1
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-03-24 00:00:00.000000000 Z
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: 1.3.1
288
+ version: '0'
289
289
  requirements: []
290
290
  rubyforge_project:
291
291
  rubygems_version: 2.6.10