On Thu, Jul 23, 2009 at 4:25 AM, gmcinnes<[email protected]> wrote: > > (...) > > So, if I understand correctly, the engine should go off and do its > thing asynchronously and Sinatra should return > the 201 to the client immediately. This is the expected behaviour, > and indeed, what I see when using Mongrel or WEBrick as the webserver. > > When using Thin, although the engine returns immediately, the halt > statement seems to be involved in a timeout before it returns - it > takes at least 30 seconds. If I add a :wait_for => true to the engine > launch, the process waits for the engine as expected, and still takes > at least 30 seconds to return. > > I've tracked this down to the point in Thin's request handling cycle > where it passes off the response to EventMachine. When it does, the > process pauses. I haven't had time to look into this further yet, but > I thought I'd leave a message to let everyone know.
Hello Grant, Very interesting. I'd like to try and reproduce the issue. Could you please indicate the versions of the gems you are using ? (rack, sinatra, thin, mongrel, ruote and also the ruby version). Thanks in advance, -- John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
