POST to static URL and CLOSE_WAIT

Jan Andersson janne at
Mon Oct 25 14:27:00 MSD 2010

we are using the following in our configuration to handle HTTP POST to static files:

 # Allow POST to static URLs
 error_page 405 = $uri;

This works, but during load, we start to see a lot of connections in CLOSE_WAIT state,
until we finally run out of connections.

Any idea why we see this and what can be done to avoid this?

We are running nginx/0.7.65 on Ubuntu 10.04:


More information about the nginx mailing list