2009/9/16 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">On Wed, Sep 16, 2009 at 09:11:08PM -0700, Kevin Castiglione wrote:<br>
<br>
&gt; hi<br>
&gt; i have the nginx config below, and the fascgi backend takes lot of time to<br>
&gt; process the request. this is expected. but nginx returns error before it is<br>
&gt; over:<br>
&gt;<br>
&gt; šupstream timed out (145: Connection timed out) while reading response<br>
&gt; header from upstream, client: X.X.X.119, server: YYY.com, request: &quot;POST /<br>
&gt; HTTP/1.1&quot;, upstream: &quot;fastcgi://A.B.C.D:8492&quot;, host: &quot;<a href="http://AAA.YYY.com" target="_blank">AAA.YYY.com</a>&quot;,<br>
&gt; referrer: &quot;<a href="http://xx.y.com/" target="_blank">http://xx.y.com/</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; can you tell me what config i should change/ increase so that nginx waits<br>
&gt; for some more time before returning this error.<br>
&gt; thanks a lot!<br>
<br>
</div>fastcgi_read_timeout š2m; š# default is 60s<br>
<br></blockquote><div>thanks a lot for this! inorder for me to tune this to the value i want, i want to be able to add the request time to the error log.<br>how do i add the request_time to the default error log format?<br>

<br>thanks a lot!<br></div></div>