unicorn-simon 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/unicorn/http_request.rb +3 -11
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fabe2ee1dc0ca2d385eacce6b3e06b85d028ab78
4
- data.tar.gz: 5c3a0278f09b24227219afba7d5ecd1d478639ca
3
+ metadata.gz: '0912cafe7efdb2a50c67a4630f1056d250b11a9d'
4
+ data.tar.gz: 75deceebf87677fb007471ad7fb49f5225af2eec
5
5
  SHA512:
6
- metadata.gz: f966aa43e2c30d2e0ccfa3932708e7fa63f5279dfa66fbcd4dbadc81d3f4851b7474a2074c9604bd84f85ff801657e0354fc11c9b586ebc4cdd09b7a8c93dd46
7
- data.tar.gz: 16eb0a564dd6acd3e1b452f18a1e3e141789069348cf19a4ce18f9b6ad95c5514bf1f64572601cc90ad58fb2ca94e156efa1850c849ebdf48018f3d69b1b8196
6
+ metadata.gz: af2a6129af26a6803f14e741e462df326b6e992bfc707cb73a7403e9badb1ffdfcbdd53cdb165433714abd0a3096f1b2b2578b6bcb87e1cf55c3dffbf96049d7
7
+ data.tar.gz: 58389af661d9be18f3a38628d86c584aba1949fa8609686acea3307dfba8c23ab7a4324799d10071c1600ad164f57c562d0ff4e4966a51103cbf0323be1d9014
@@ -32,8 +32,6 @@ class Unicorn::HttpParser
32
32
  @@raindrops_tcp_info_defined = defined?(Raindrops::TCP_Info)
33
33
  @@check_client_connection = false
34
34
 
35
- IGNORED_CHECK_CLIENT_SOCKET_STATES = (6..9)
36
-
37
35
  def self.input_class
38
36
  @@input_class
39
37
  end
@@ -123,15 +121,9 @@ def check_client_connection(socket)
123
121
 
124
122
  def closed_state?(state)
125
123
  case state
126
- when 6 # TCP_TIME_WAIT
127
- true
128
- when 7 # TCP_CLOSE
129
- true
130
- when 8 # TCP_CLOSE_WAIT
131
- true
132
- when 9 # TCP_LAST_ACK
133
- true
134
- when 11 # TCP_CLOSING
124
+ when 1 # ESTABLISHED
125
+ false
126
+ when 6, 7, 8, 9, 11 # TIME_WAIT, CLOSE, CLOSE_WAIT, LAST_ACK, CLOSING
135
127
  true
136
128
  else
137
129
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-simon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - unicorn hackers
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  version: '0'
298
298
  requirements: []
299
299
  rubyforge_project:
300
- rubygems_version: 2.6.8
300
+ rubygems_version: 2.6.10
301
301
  signing_key:
302
302
  specification_version: 4
303
303
  summary: Rack HTTP server for fast clients and Unix