about summary refs log tree commit homepage
path: root/lib/rainbows/reverse_proxy/coolio.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-24 22:55:30 +0000
committerEric Wong <e@80x24.org>2015-11-24 22:55:47 +0000
commit4d8edc0200b6adae01549331d1a6e483e5e837b8 (patch)
treeb476bc72b05f0939e42e02920f350e32a8389e81 /lib/rainbows/reverse_proxy/coolio.rb
parentffd561ec37cc0d1df585e33d281737e21b8f7eb4 (diff)
downloadrainbows-4d8edc0200b6adae01549331d1a6e483e5e837b8.tar.gz
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.
Diffstat (limited to 'lib/rainbows/reverse_proxy/coolio.rb')
-rw-r--r--lib/rainbows/reverse_proxy/coolio.rb6
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