about summary refs log tree commit homepage
path: root/lib/rainbows/rev.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-25 16:14:49 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-26 02:26:22 -0700
commit8487d928f9581d98aee14e1991f129422278367c (patch)
tree04eb15c1f8494e948d9b9882ecf4371c77b04536 /lib/rainbows/rev.rb
parent344f8cf1e000704d53d7841eb896d83b470d7a08 (diff)
downloadrainbows-8487d928f9581d98aee14e1991f129422278367c.tar.gz
Graceful quit means we finish sending everything we have before
exiting.  Additionally, only signal quits after we've queued
the error response up.
Diffstat (limited to 'lib/rainbows/rev.rb')
-rw-r--r--lib/rainbows/rev.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb
index 572b88a..89f893a 100644
--- a/lib/rainbows/rev.rb
+++ b/lib/rainbows/rev.rb
@@ -62,7 +62,7 @@ module Rainbows
             # keepalive requests are always body-less, so @input is unchanged
             @hp.headers(@env, @buf) and next
           else
-            @state = :close
+            quit
           end
           return
         end while true