about summary refs log tree commit homepage
path: root/lib/rainbows/revactor
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-15 14:42:05 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-15 15:29:33 -0800
commit96bf949605e10db306adcdb810bafc145f3e188e (patch)
tree1f7331b0a9efeebcfe75b9818a184a2b7a86c0d1 /lib/rainbows/revactor
parentf91f2690395e1bfdf6950ed11d4fab159e50ea53 (diff)
downloadrainbows-96bf949605e10db306adcdb810bafc145f3e188e.tar.gz
Less stuff to maintain is good.
Diffstat (limited to 'lib/rainbows/revactor')
-rw-r--r--lib/rainbows/revactor/tee_input.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/rainbows/revactor/tee_input.rb b/lib/rainbows/revactor/tee_input.rb
index fb7fa42..8fb4551 100644
--- a/lib/rainbows/revactor/tee_input.rb
+++ b/lib/rainbows/revactor/tee_input.rb
@@ -32,13 +32,8 @@ module Rainbows
           end
         end
         finalize_input
-        rescue EOFError
-          # in case client only did a premature shutdown(SHUT_WR)
-          # we do support clients that shutdown(SHUT_WR) after the
-          # _entire_ request has been sent, and those will not have
-          # raised EOFError on us.
-          socket.close if socket
-          raise Unicorn::ClientShutdown, "bytes_read=#{@tmp.size}", []
+        rescue => e
+          client_error(e)
       end
 
       def finalize_input