From 4d8edc0200b6adae01549331d1a6e483e5e837b8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 24 Nov 2015 22:55:30 +0000 Subject: fix broken constant lookups in unmaintained bits In case Revactor starts being maintained again... (heck, it was probably the reason I started Rainbows! in the first place...) Our ReverseProxy stuff was never complete nor marketed; and probably not worth keeping around at all. --- lib/rainbows/reverse_proxy/coolio.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rainbows/reverse_proxy/coolio.rb') 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 -- cgit v1.2.3-24-ge0c7