hi<br>i have the nginx config below, and the fascgi backend takes lot of time to process the request. this is expected. but nginx returns error before it is over:<br><br>upstream timed out (145: Connection timed out) while reading response header from upstream, client: X.X.X.119, server: YYY.com, request: "POST / HTTP/1.1", upstream: "fastcgi://A.B.C.D:8492", host: "<a href="http://AAA.YYY.com" target="_blank">AAA.YYY.com</a>", referrer: "<a href="http://xx.y.com/" target="_blank">http://xx.y.com/</a><br>
<br><br><br>can you tell me what config i should change/ increase so that nginx waits for some more time before returning this error.<br>thanks a lot!<br><br> upstream backend_XX{<br> server A.B.C.D:8492 fail_timeout=1s;<br>
}<br> server {<br> server_name <a href="http://AAA.YYY.com" target="_blank">AAA.YYY.com</a>;<br> include nginx_listen.conf;<br> access_log logs/access.log;<br><br> client_max_body_size 10m;<br>
<br>
location / {<br> root /home/mark/XX;<br><br> fastcgi_pass backend_XX;<br><br> fastcgi_param SCRIPT_NAME $host$fastcgi_script_name;<br> fastcgi_param SCRIPT_FILENAME /$host$fastcgi_script_name;<br>
fastcgi_param PATH_INFO /$host$fastcgi_script_name;<br> fastcgi_param QUERY_STRING $query_string;<br> fastcgi_param CONTENT_TYPE $content_type;<br> fastcgi_param CONTENT_LENGTH $content_length;<br>
fastcgi_param REQUEST_METHOD $request_method;<br> fastcgi_param REMOTE_ADDR $remote_addr;<br> fastcgi_param REMOTE_PORT $remote_port;<br> fastcgi_param SERVER_PROTOCOL $server_protocol;<br>
fastcgi_param SERVER_ADDR $server_addr;<br> fastcgi_param SERVER_PORT $server_port;<br> fastcgi_param SERVER_NAME $server_name;<br> }<br> }<br><br><br><br><br><br>