From 96bf949605e10db306adcdb810bafc145f3e188e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 15 Nov 2009 14:42:05 -0800 Subject: revactor/tee_input: share error handling with superclass Less stuff to maintain is good. --- lib/rainbows/revactor/tee_input.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7