about 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:09:31 +0000
commitac15513bb81a345cd12c67702a81a585b8b0514e (patch)
treee2abb6608ccf39805a50dcf27d967d8b78f6c592
parent0fea004ab093ec4f59d919915a505a136326bd8a (diff)
downloadunicorn-ac15513bb81a345cd12c67702a81a585b8b0514e.tar.gz
Noticed while hacking on a Zbatery-using application
-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