]> git.kaiwu.me - nginx.git/commit
Merge of r4470:
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 5 Mar 2012 12:33:06 +0000 (12:33 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 5 Mar 2012 12:33:06 +0000 (12:33 +0000)
commit8f78d3ae636d01a3f76e67a51808506c4a943891
treed68bde78688e187e7f117f87b6637d349ba52390
parentd2ad924d3336f060aaafb7886006f806d115e5e0
Merge of r4470:

Fix for proxy_store leaving temporary files for subrequests.

Temporary files might not be removed if the "proxy_store" or "fastcgi_store"
directives were used for subrequests (e.g. ssi includes) and client closed
connection prematurely.

Non-active subrequests are finalized out of the control of the upstream
module when client closes a connection.  As a result, the code to remove
unfinished temporary files in ngx_http_upstream_process_request() wasn't
executed.

Fix is to move relevant code into ngx_http_upstream_finalize_request() which
is called in all cases, either directly or via the cleanup handler.
src/http/ngx_http_upstream.c