diff options
Diffstat (limited to 'lib/rainbows/reverse_proxy/coolio.rb')
-rw-r--r-- | lib/rainbows/reverse_proxy/coolio.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/reverse_proxy/coolio.rb b/lib/rainbows/reverse_proxy/coolio.rb index 2a977e0..86f2b79 100644 --- a/lib/rainbows/reverse_proxy/coolio.rb +++ b/lib/rainbows/reverse_proxy/coolio.rb @@ -32,20 +32,20 @@ module Rainbows::ReverseProxy::Coolio when :wait_readable return when nil - @env[AsyncCallback].call(@response) + @env['async.callback'].call(@response) return close end while true # we always read until EAGAIN or EOF rescue => e case e when Errno::ECONNRESET - @env[AsyncCallback].call(@response) + @env['async.callback'].call(@response) return close when SystemCallError else Unicorn.log_error(@env["rack.logger"], "on_readable", e) end - @env[AsyncCallback].call(Rainbows::ReverseProxy::E502) + @env['async.callback'].call(Rainbows::ReverseProxy::E502) close end end |