summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-11 02:05:01 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-11 02:10:03 +0000
commit454a81378bf88dccb081b2cd7e7126a66a92f013 (patch)
tree5e88359add1078375c8361ed559af5bc597c3dc1
parent36ab744c7b79c47ca3d03fcf0f90eb3b8bba9b07 (diff)
Noticed while hacking on a Zbatery-using application
(cherry picked from commit ac15513bb81a345cd12c67702a81a585b8b0514e)
-rw-r--r--lib/unicorn/tee_input.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb
index a11420a..540cfe0 100644
--- a/lib/unicorn/tee_input.rb
+++ b/lib/unicorn/tee_input.rb
@@ -176,8 +176,8 @@ private
       # _entire_ request has been sent, and those will not have
       # raised EOFError on us.
       socket.close if socket
-      raise ClientShutdown, "bytes_read=#{tmp.size}", []
-    when HttpParserError
+      raise Unicorn::ClientShutdown, "bytes_read=#{tmp.size}", []
+    when Unicorn::HttpParserError
       e.set_backtrace([])
     end
     raise e