about summary refs log tree commit homepage
path: root/lib/rainbows/rev/thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/thread.rb')
-rw-r--r--lib/rainbows/rev/thread.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/rev/thread.rb b/lib/rainbows/rev/thread.rb
index 2356ae2..0f36ce5 100644
--- a/lib/rainbows/rev/thread.rb
+++ b/lib/rainbows/rev/thread.rb
@@ -20,11 +20,10 @@ module Rainbows
 
       # this is only called in the master thread
       def response_write(response)
-        alive = @hp.keepalive? && G.alive
+        alive = @hp.next? && G.alive
         rev_write_response(response, alive)
         return quit unless alive && :close != @state
 
-        @hp.reset
         @state = :headers
       end