<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Timing out Rails from Mongrel</title>
	<atom:link href="http://blog.rapleaf.com/dev/2007/11/15/timing-out-rails-from-mongrel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rapleaf.com/dev/2007/11/15/timing-out-rails-from-mongrel/</link>
	<description>For engineers, by engineers.</description>
	<lastBuildDate>Mon, 07 May 2012 08:24:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: chris</title>
		<link>http://blog.rapleaf.com/dev/2007/11/15/timing-out-rails-from-mongrel/#comment-512</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Mon, 10 Dec 2007 21:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=13#comment-512</guid>
		<description>No.  You can test this by creating an action that sleeps forever and see what happens.  I stopped watching after hanging the browser for 30 minutes.

Mongrel calls reap_dead_workers for 3 different reasons: too many open files (lines 651 &amp; 746), max processors (734) and graceful shutdown (688).  Graceful shutdown gives workers 60 seconds to finish, then kills them.  Too many open files should only happen if you have a large number of requests or some other process on the machine is eating up file handles.  Max processors can be set when calling HttpServer.new, but defaults to 1 Billion (2**30 - 1).

Keep in mind this is all on mongrel-1.0.1.  I haven&#039;t looked through the code for later versions.</description>
		<content:encoded><![CDATA[<p>No.  You can test this by creating an action that sleeps forever and see what happens.  I stopped watching after hanging the browser for 30 minutes.</p>
<p>Mongrel calls reap_dead_workers for 3 different reasons: too many open files (lines 651 &amp; 746), max processors (734) and graceful shutdown (688).  Graceful shutdown gives workers 60 seconds to finish, then kills them.  Too many open files should only happen if you have a large number of requests or some other process on the machine is eating up file handles.  Max processors can be set when calling HttpServer.new, but defaults to 1 Billion (2**30 &#8211; 1).</p>
<p>Keep in mind this is all on mongrel-1.0.1.  I haven&#8217;t looked through the code for later versions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Persinger</title>
		<link>http://blog.rapleaf.com/dev/2007/11/15/timing-out-rails-from-mongrel/#comment-502</link>
		<dc:creator>Scott Persinger</dc:creator>
		<pubDate>Fri, 07 Dec 2007 17:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=13#comment-502</guid>
		<description>Doesn&#039;t mongrel have a default 60 second timeout for all actions?

I see the TimeoutError raised in the reap_dead_workers function (mongrel.rb:665) in our logs occasionally when there&#039;s a backup.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t mongrel have a default 60 second timeout for all actions?</p>
<p>I see the TimeoutError raised in the reap_dead_workers function (mongrel.rb:665) in our logs occasionally when there&#8217;s a backup.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

