Fastcgi_cache sometimes returns statuscode 500
mastercan
nginx-forum at nginx.us
Mon Mar 2 14:11:11 UTC 2015
I've had 2 cases with status code 500 now since setting error log to debug
level:
The error msg: "epoll_wait() reported that client prematurely closed
connection while sending request to upstream"
It's interesting to note that:
If a "normal" file (no caching involved) is requested and the client closes
the connection prematurely, the status code is 200 and the response body is
0 bytes.
If first a php script is called, which responds with a X-Accel-Redirect to
the cached file, and the client closes the connection prematurely, the
status code is 500 and the response body is 0 bytes.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256977,256988#msg-256988
More information about the nginx
mailing list