Forum: NGINX Connection reset by peer on first request

Posted by Cancer (Guest)
on 2012-11-15 00:27
(Received via mailing list)
Hi,

I'm using Nginx with php-cgi.  A problem arose recently where if you 
have
not used my site for a few minutes and then go to it, the first request 
is
always 'connection reset by peer'.  If you refresh, everything functions
normally until you leave for a few minutes and go to another link.  It
happens 100% of the time. Does anyone know what could be the problem?

All I get in error log with debug on are these messages:
2012/11/14 17:25:46 [info] 3454#0: *2516 client prematurely closed
connection while reading client request line, client: *, server: 
domain.com

Also, these coincide with the 400 bad request errors in access.log.  I 
have
tried restart dns server, nginx, php-cgi, etc, but to no avail.

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,232817,232817#msg-232817
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.