I have nginx running as a proxy to about twelve upstream app servers,
serving a rails app. Nothing else really in this configuration.<br><br>I am seeing about 10% of requests throwing 500 errors, and this in my error log:<br>
<br>2008/03/10 08:41:05 [info] 6632#0: *12005 client closed prematurely
connection while sending response to client, client: xxx, server: xxx,
request: xxx, host: xxx, referrer: xxx<br><br>I&#39;m also seeing lots of:<br>
<br>client xxx closed keepalive connection<br><br>but that strikes me as normal, and I&#39;m seeing:<br><br>client closed prematurely connection while reading client request line, client: xxx, server: xxx<br><br>I have googled far and wide, and the best answers I came up with were to add these lines to my conf:<br>

<br>proxy_ignore_client_abort&nbsp; on;<br>proxy_next_upstream error;<br><br>but, that doesn&#39;t seem to have solved the problem.<br><br>Any ideas?<br><br>Thanks in advance.<br>