nginx connection reset

Posted by Steve on Server Fault See other posts from Server Fault or by Steve
Published on 2012-11-09T11:01:20Z Indexed on 2012/11/09 11:06 UTC
Read the original article Hit count: 242

When first visiting my site after not visiting it for a few minutes, the connection is "reset" 100% of the time.

I get this message when debug is turned on, along with a 400 bad request status message:

client prematurely closed connection while reading client request line

I've read that this could be caused by large_client_header_buffers setting. I have google analytics on my site. Using live http headers, I get this as the request:

`GET /__utm.gif?utmwv=5.3.7&utms=35&utmn=745612186&utmhn=domain.com&utmcs=UTF-8&utmsr=1920x1080&utmvp=1841x903&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=11.4%20r402&utmdt=2006Scape%20Forums%20-%20General&utmhid=2004697163&utmr=0&utmp=%2Fservices%2Fforums%2Fboard.ws%3F3%2C4&utmac=UA-25674897-2&utmcc=__utma%3D68455186.1647889527.1351640625.1352446442.1352451659.100%3B%2B__utmz%3D68455186.1352097329.64.2.utmcsr%3Ddomain.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fservices%2Fforums%2Fboard.ws%3B&utmu=q~ HTTP/1.1

my large_client_header_buffers in nginx is set to 4 8k, so I don't know if this is the problem. Immediate requests have the first "reset" request are all successful.

© Server Fault or respective owner

Related posts about nginx

Related posts about connection