From 9cc509bda610fa5ca8c642cdcf480835b8dfc468 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 24 Nov 2009 01:12:16 -0800 Subject: rev/event_machine: avoid needless rewinds No point in rewinding the NULL_IO especially when most requests use them instead of bodies that actually have something. --- lib/rainbows/ev_core.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows/ev_core.rb') diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index 017fe5c..e0fb029 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -74,6 +74,7 @@ module Rainbows end when :trailers if @hp.trailers(@env, @buf << data) + @input.rewind app_call @input.close if File === @input end -- cgit v1.2.3-24-ge0c7