librelist archives

« back to archive

Handler Failure Blocks New Requests?

Handler Failure Blocks New Requests?

From:
Matt Towers
Date:
2011-01-08 @ 00:19
Is Mongrel2 multi-threaded?

I'm curious as to what happens when a given handler fails to send a reply 
message.  Assuming it's single-threaded, wouldn't this cause Mongrel2 to 
block new requests until the failed request times out?

✈ Matt


Re: [mongrel2] Handler Failure Blocks New Requests?

From:
Zed A. Shaw
Date:
2011-01-08 @ 00:22
On Fri, Jan 07, 2011 at 04:19:12PM -0800, Matt Towers wrote:
> Is Mongrel2 multi-threaded?
> 
> I'm curious as to what happens when a given handler fails to send a
> reply message.  Assuming it's single-threaded, wouldn't this cause
> Mongrel2 to block new requests until the failed request times out?

Nope, it's event based plus uses coroutines, so shouldn't block at all.
Your messages will get queued up until the handler restarts.

-- 
Zed A. Shaw
http://zedshaw.com/