diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-06 01:04:39 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-06 01:04:39 +0000 |
commit | 3decb4375847b97c117440e5167dbba33d5f33b5 (patch) | |
tree | 323000f085a92f254e8606c23fce39c541ec7624 | |
parent | bcca2d3bc609e9ecaa77ec93bef861b1ddcc01dd (diff) | |
download | rainbows-3decb4375847b97c117440e5167dbba33d5f33b5.tar.gz |
-rw-r--r-- | lib/rainbows/process_client.rb | 2 | ||||
-rw-r--r-- | lib/rainbows/xepoll_thread_spawn/client.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/process_client.rb b/lib/rainbows/process_client.rb index f30aa5d..3be0ff3 100644 --- a/lib/rainbows/process_client.rb +++ b/lib/rainbows/process_client.rb @@ -59,7 +59,7 @@ module Rainbows::ProcessClient status, headers, body = APP.call(env) end write_response(status, headers, body, alive = hp.next?) - end while alive && env = pipeline_ready(hp) + end while alive && pipeline_ready(hp) alive or close rescue => e handle_error(e) diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index 7e02f82..8cb3d27 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -104,14 +104,14 @@ module Rainbows::XEpollThreadSpawn::Client end def pipeline_ready(hp) - env = hp.parse and return env + hp.parse and return true case buf = kgio_tryread(HBUFSIZ) when :wait_readable kato_set return false when String hp.buf << buf - env = hp.parse and return env + hp.parse and return true # continue loop else return close |