unicorn-simon 0.0.3 → 0.0.4

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: '0912cafe7efdb2a50c67a4630f1056d250b11a9d'
4
- data.tar.gz: 75deceebf87677fb007471ad7fb49f5225af2eec
3
+ metadata.gz: 31ad0a2ccf6cc4a817ccdc61381599b1a6514fc8
4
+ data.tar.gz: 5e7e82e3d702df34229d80423edadbd415e7bb3f
5
5
  SHA512:
6
- metadata.gz: af2a6129af26a6803f14e741e462df326b6e992bfc707cb73a7403e9badb1ffdfcbdd53cdb165433714abd0a3096f1b2b2578b6bcb87e1cf55c3dffbf96049d7
7
- data.tar.gz: 58389af661d9be18f3a38628d86c584aba1949fa8609686acea3307dfba8c23ab7a4324799d10071c1600ad164f57c562d0ff4e4966a51103cbf0323be1d9014
6
+ metadata.gz: 0b7a35d1f76ce03e6672c403cfd91b8be89896dc9d1da2b3c9aff907905d1723d2bc66b79f9bd9ef8771873306f07bb251c23094346c46d06c840ff04ac270d5
7
+ data.tar.gz: 9adf510a1199d9076e3f37448acfcac2e2b04c986fe0e9e0cfdebde69f131928d51869fbc6a535a64b5ea9cbf115ee1dcd1cbb26b1f6d43ea03cd611136c3d64
@@ -84,7 +84,6 @@ def read(socket)
84
84
  false until add_parse(socket.kgio_read!(16384))
85
85
  end
86
86
 
87
- # detect if the socket is valid by checking client connection.
88
87
  check_client_connection(socket) if @@check_client_connection
89
88
 
90
89
  e['rack.input'] = 0 == content_length ?
@@ -110,9 +109,9 @@ def hijacked?
110
109
  private
111
110
 
112
111
  def check_client_connection(socket)
113
- if @@raindrops_tcp_info_defined && TCPSocket === socket
112
+ if @@raindrops_tcp_info_defined
114
113
  tcp_info = Raindrops::TCP_Info.new(socket)
115
- raise Errno::EPIPE, "client closed connection".freeze, [] if closed_state?(tcp_info.state)
114
+ raise Errno::EPIPE, "client closed connection state=#{tcp_info.state} socket_class=#{socket.class}", [] if closed_state?(tcp_info.state)
116
115
  elsif headers?
117
116
  self.response_start_sent = true
118
117
  HTTP_RESPONSE_START.each { |c| socket.write(c) }
@@ -527,6 +527,7 @@ def maintain_worker_count
527
527
  def handle_error(client, e)
528
528
  code = case e
529
529
  when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::ENOTCONN
530
+ Unicorn.log_error(@logger, e.message, e)
530
531
  # client disconnected on us and there's nothing we can do
531
532
  when Unicorn::RequestURITooLongError
532
533
  414
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - unicorn hackers