From 17dc99cc5c3a3fc59145724059f36c5c907f6c3f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 4 May 2009 06:08:36 +0000 Subject: Inline and remove the HttpRequest#reset method These potentially leaves an open file handle around until the next request hits the process, but this makes the common case faster. --- lib/unicorn.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/unicorn.rb') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 0b8ac5e..bcd0a91 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -430,8 +430,6 @@ module Unicorn client.close rescue nil logger.error "Read error: #{e.inspect}" logger.error e.backtrace.join("\n") - ensure - @request.reset end # gets rid of stuff the worker has no business keeping track of -- cgit v1.2.3-24-ge0c7