diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-21 17:34:21 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-21 17:34:21 -0800 |
commit | 01fbc4a7f2fd5b751b9183d11aa74aadaffd145b (patch) | |
tree | f672c1ae40267c88e5bce7662b6e361c93548c01 /lib/rainbows/coolio | |
parent | 9719da13b8aabeabbf2eebc37f127e88550c3121 (diff) | |
download | rainbows-01fbc4a7f2fd5b751b9183d11aa74aadaffd145b.tar.gz |
No need to setting an ivar for most requests
Diffstat (limited to 'lib/rainbows/coolio')
-rw-r--r-- | lib/rainbows/coolio/client.rb | 4 | ||||
-rw-r--r-- | lib/rainbows/coolio/thread_client.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/rainbows/coolio/client.rb b/lib/rainbows/coolio/client.rb index 0ccccff..f1f16d3 100644 --- a/lib/rainbows/coolio/client.rb +++ b/lib/rainbows/coolio/client.rb @@ -106,10 +106,10 @@ class Rainbows::Coolio::Client < Coolio::IO @state = :headers end - def app_call + def app_call input KATO.delete(self) disable if enabled? - @env[RACK_INPUT] = @input + @env[RACK_INPUT] = input @env[REMOTE_ADDR] = @_io.kgio_addr @env[ASYNC_CALLBACK] = method(:write_async_response) status, headers, body = catch(:async) { diff --git a/lib/rainbows/coolio/thread_client.rb b/lib/rainbows/coolio/thread_client.rb index b837115..abc11d2 100644 --- a/lib/rainbows/coolio/thread_client.rb +++ b/lib/rainbows/coolio/thread_client.rb @@ -5,10 +5,10 @@ RUBY_VERSION =~ %r{\A1\.8} and warn "Coolio and Threads do not mix well under Ruby 1.8" class Rainbows::Coolio::ThreadClient < Rainbows::Coolio::Client - def app_call + def app_call input KATO.delete(self) disable if enabled? - @env[RACK_INPUT] = @input + @env[RACK_INPUT] = input app_dispatch # must be implemented by subclass end |