diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-19 10:09:48 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-19 17:04:14 -0700 |
commit | 5ec57e5f5d7df07f563722a12d95845579e86e13 (patch) | |
tree | c2012a7a968d96786fb15d50185fc11468c92e1f /lib/rainbows/rev/thread.rb | |
parent | 399bbdb5c5e7cf9e716aacd9f0763813edf52423 (diff) | |
download | rainbows-5ec57e5f5d7df07f563722a12d95845579e86e13.tar.gz |
This will give each concurrency model more control over particular code paths and serving static files.
Diffstat (limited to 'lib/rainbows/rev/thread.rb')
-rw-r--r-- | lib/rainbows/rev/thread.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows/rev/thread.rb b/lib/rainbows/rev/thread.rb index 8fc7172..2dbaa84 100644 --- a/lib/rainbows/rev/thread.rb +++ b/lib/rainbows/rev/thread.rb @@ -22,9 +22,8 @@ module Rainbows def response_write(response) enable alive = @hp.keepalive? && G.alive - out = [ alive ? CONN_ALIVE : CONN_CLOSE ] if @hp.headers? - rev_write_response(response, out) - return quit unless alive && G.alive + rev_write_response(response, alive) + return quit unless alive @env.clear @hp.reset |