From 454a81378bf88dccb081b2cd7e7126a66a92f013 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 11 Jul 2010 02:05:01 +0000 Subject: tee_input: fix constant resolution for client EOF Noticed while hacking on a Zbatery-using application (cherry picked from commit ac15513bb81a345cd12c67702a81a585b8b0514e) --- lib/unicorn/tee_input.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7