synchronous controllers taking 6 seconds in Eventmachine config

Christoph Sturm me at christophsturm.com
Wed Sep 15 09:46:05 EDT 2010


hello rainbows friends!

we use rainbows in eventmachine mode, and it seems there's a bug in handling of synchronous responses.

this controller takes 6 seconds:

def call(env)
      Rack::Response.new.finish
end

this only occurs when i dont set a content length, for example this controller returns immedately:

def call
   [200, {'Content-Length' => 2}, ['OK']]
end

it also doesnt seem to be eventmachine specific, if i remove the use  :Eventmachine it also happens.

-chris


More information about the rainbows-talk mailing list