summary refs log tree commit homepage
path: root/lib/rainbows/event_machine.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-09 08:45:03 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-09 08:45:03 +0000
commit59f10a6dcf895b728bbc34546aebdb8bf25a1b0b (patch)
tree63bf163cda0e7b6c4f09dca920c7ff8d08c5356a /lib/rainbows/event_machine.rb
parente1c10949271a9cd3cbad86d05ce0436f2e79bc65 (diff)
event_machine: rename response_write => em_write_response
For consistency with rev_write_response (and the existing
"write_response").
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r--lib/rainbows/event_machine.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb
index 0404493..bbb38fa 100644
--- a/lib/rainbows/event_machine.rb
+++ b/lib/rainbows/event_machine.rb
@@ -71,7 +71,7 @@ module Rainbows
         begin
           @env[RACK_INPUT] = @input
           @env[REMOTE_ADDR] = @remote_addr
-          @env[ASYNC_CALLBACK] = method(:response_write)
+          @env[ASYNC_CALLBACK] = method(:em_write_response)
 
           # we're not sure if anybody uses this, but Thin sets it, too
           @env[ASYNC_CLOSE] = EM::DefaultDeferrable.new
@@ -85,7 +85,7 @@ module Rainbows
 
           alive = @hp.keepalive? && G.alive
           out = [ alive ? CONN_ALIVE : CONN_CLOSE ] if @hp.headers?
-          response_write(response, out, alive)
+          em_write_response(response, out, alive)
 
           if alive
             @env.clear
@@ -99,7 +99,7 @@ module Rainbows
         end while true
       end
 
-      def response_write(response, out = [ CONN_CLOSE ], alive = false)
+      def em_write_response(response, out = [ CONN_CLOSE ], alive = false)
         @body = body = response[2]
         if body.respond_to?(:errback) && body.respond_to?(:callback)
           body.callback { quit }