<div class="gmail_quote">2009/9/4 Nuno Magalhães <span dir="ltr"><<a href="mailto:nunomagalhaes@eu.ipp.pt">nunomagalhaes@eu.ipp.pt</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm running nginx/0.8.10 and PHP 5.2.10 on Debian Sid with a<br>
2.6.30-1-amd64 kernel. This is my desktop machine, mainly for testing<br>
and screwing around with configurations (although screwing up also<br>
comes to mind). I've recently upgraded my system through Debian's<br>
apt-get dist-upgrade, which reset my fastcgi_params.<br>
<br>
Nginx spawns two worker processes, php-fastcgi spawns 4, nginx is the<br>
only http server i'm running, i have no proxies or anything.<br>
<br>
If i have an URL like <a href="http://localhost:8080/site01/file.php?var=param" target="_blank">http://localhost:8080/site01/file.php?var=param</a><br>
and hit the reload button constantly, i'll get a bunch of normal<br>
replies (200), followed by a bunch of 502s, then 200, then 502, ...<br>
The interval is about the same, maybe a second or so.<br>
<br>
If i use <a href="http://localhost:8080/simplefile.html" target="_blank">http://localhost:8080/simplefile.html</a> for a simple lorem<br>
ipsum html file i sometimes get the 502 in the first few reloads, but<br>
after that it's just 200.<br>
<br></blockquote><div><br><br>how heavy is your '/site01/file.php' script? (btw, I dont see any reference to it in your 502 log file)<br>
<br>
I would imagine that the cause would be because nginx does not queue
connections. And you have only a limited number of fastcgi processes (or how are u running your fastcgi?) Therefore when they are busy, and cannot accept connections, you will
get a reset (i dont know how u're setting up your fastcgi, but!). The html without php gets cached very easily - therefore it's 200s all the way after any initial problems.<br><br>-jf<br>
<br>
<br>
--<br clear="all">In the meantime, here is your PSA:<br>"It's so hard to write a graphics driver that open-sourcing it would not help."<br> -- Andrew Fear, Software Product Manager, NVIDIA Corporation<br>
<a href="http://kerneltrap.org/node/7228">http://kerneltrap.org/node/7228</a><br></div></div>