unicorn 4.3.0 → 4.3.0.2.g4551

Sign up to get free protection for your applications and to get access to all the features.
@@ -507,7 +507,8 @@ class Unicorn::HttpServer
507
507
  # the socket is closed at the end of this function
508
508
  def handle_error(client, e)
509
509
  msg = case e
510
- when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF
510
+ when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF,
511
+ Errno::ENOTCONN
511
512
  Unicorn::Const::ERROR_500_RESPONSE
512
513
  when Unicorn::RequestURITooLongError
513
514
  Unicorn::Const::ERROR_414_RESPONSE
@@ -139,7 +139,11 @@ private
139
139
  # we do support clients that shutdown(SHUT_WR) after the
140
140
  # _entire_ request has been sent, and those will not have
141
141
  # raised EOFError on us.
142
- @socket.close if @socket
142
+ if @socket
143
+ @socket.shutdown
144
+ @socket.close
145
+ end
146
+ ensure
143
147
  raise Unicorn::ClientShutdown, "bytes_read=#{@bytes_read}", []
144
148
  end
145
149
  end
metadata CHANGED
@@ -1,13 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
5
- prerelease:
4
+ hash: 9111
5
+ prerelease: 8
6
6
  segments:
7
7
  - 4
8
8
  - 3
9
9
  - 0
10
- version: 4.3.0
10
+ - 2
11
+ - g
12
+ - 4551
13
+ version: 4.3.0.2.g4551
11
14
  platform: ruby
12
15
  authors:
13
16
  - Unicorn hackers
@@ -15,7 +18,7 @@ autorequire:
15
18
  bindir: bin
16
19
  cert_chain: []
17
20
 
18
- date: 2012-04-17 00:00:00 Z
21
+ date: 2012-04-27 00:00:00 Z
19
22
  dependencies:
20
23
  - !ruby/object:Gem::Dependency
21
24
  name: rack
@@ -414,16 +417,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
414
417
  required_rubygems_version: !ruby/object:Gem::Requirement
415
418
  none: false
416
419
  requirements:
417
- - - ">="
420
+ - - ">"
418
421
  - !ruby/object:Gem::Version
419
- hash: 3
422
+ hash: 25
420
423
  segments:
421
- - 0
422
- version: "0"
424
+ - 1
425
+ - 3
426
+ - 1
427
+ version: 1.3.1
423
428
  requirements: []
424
429
 
425
430
  rubyforge_project: mongrel
426
- rubygems_version: 1.8.22
431
+ rubygems_version: 1.8.17
427
432
  signing_key:
428
433
  specification_version: 3
429
434
  summary: Rack HTTP server for fast clients and Unix