From 01fbc4a7f2fd5b751b9183d11aa74aadaffd145b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 21 Jan 2011 17:34:21 -0800 Subject: ev_core: force input to be given to app_call No need to setting an ivar for most requests --- lib/rainbows/coolio/client.rb | 4 ++-- lib/rainbows/coolio/thread_client.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rainbows/coolio') 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 -- cgit v1.2.3-24-ge0c7