Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-10 Thread Eric Wong
Pierre Baillet o...@fotonauts.com wrote: Hello Unicorns, I've manage to create a simple middleware that replaces the soft timeout feature. You can have a look at it at http://gist.github.com/431451 Note that some weird Ruby interpreter behavior breaks at least the first level of the

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-09 Thread Pierre Baillet
Hello Unicorns, I've manage to create a simple middleware that replaces the soft timeout feature. You can have a look at it at http://gist.github.com/431451 Note that some weird Ruby interpreter behavior breaks at least the first level of the generated stacktrace (it indicates the actual method

Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
for Soft Timeout in Unicorn From: Pierre Baillet o...@fotonauts.com To: unic...@bogomips.org Hi, Just tried to send that through the ml, but it seems something went wrong... Cheers, -- Pierre. -- Forwarded message -- From: mongrel-unicorn-ow...@rubyforge.org Date: Thu, Jun 3, 2010

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
Pierre Baillet wrote: We use Unicorn at fotopedia since yesterday in production. We switched from Passenger due to an issue in the way Passenger was handling some error in our main application. Things run very well on Unicorn. We have also modified Unicorn to handle a soft timeout for its

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Pierre Baillet
Eric, On Thu, Jun 3, 2010 at 8:22 PM, Eric Wong normalper...@yhbt.net wrote: This would be doable as middleware, too, and if done carefully, even safely reusable in multi-threaded web servers.  This would be a good addition to rack-contrib, even.  I might consider doing it myself if I had

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Pierre Baillet
Ohai, On Thu, Jun 3, 2010 at 9:38 PM, Chris Wanstrath ch...@ozmm.org wrote: On Thu, Jun 3, 2010 at 11:47 AM, Eric Wong normalper...@yhbt.net wrote: Actually, internally, Unicorn only knows about Rack and wraps older CGI-based Rails using the Unicorn::App::OldRails application (via

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Chris Wanstrath
On Thu, Jun 3, 2010 at 11:47 AM, Eric Wong normalper...@yhbt.net wrote: Actually, internally, Unicorn only knows about Rack and wraps older CGI-based Rails using the Unicorn::App::OldRails application (via Unicorn::CGIWrapper). unicorn_rails basically wraps up the following config for you,