Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
Hi, HTML attachments are wasteful and thus rejected from the mailing list. On the other hand, it actually helps to include the patch itself (inline) so it's readable without a (human) context switch :) - Forwarded message from Pierre Baillet o...@fotonauts.com - Subject: Fwd: Support

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,