]> git.kaiwu.me - nginx.git/commit
Background subrequests for cache updates.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 25 May 2017 12:57:59 +0000 (15:57 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 25 May 2017 12:57:59 +0000 (15:57 +0300)
commit8644d9491ad3c0eb16bcda1d452aba326e1f4dae
tree1425006b8569fe3059667742d484933ec9c0e7e5
parentc83922b18ddc83f654c1d0df48a6ca1ee9938078
Background subrequests for cache updates.

Previously, cache background update might not work as expected, making client
wait for it to complete before receiving the final part of a stale response.
This could happen if the response could not be sent to the client socket in one
filter chain call.

Now background cache update is done in a background subrequest.  This type of
subrequest does not block any other subrequests or the main request.
src/http/ngx_http_core_module.c
src/http/ngx_http_request.c
src/http/ngx_http_request.h
src/http/ngx_http_upstream.c