mirror of
https://github.com/nginx/nginx.git
synced 2024-12-16 06:09:00 +08:00
5274f023a2
Previously, after sending a header we always sent a last buffer and finalized a request with code 0, even in case of errors. In some cases this resulted in a loss of ability to detect the response wasn't complete (e.g. if Content-Length was removed from a response by gzip filter). This change tries to propogate to a client information that a response isn't complete in such cases. In particular, with this change we no longer pretend a returned response is complete if we wasn't able to create a temporary file. If an error code suggests the error wasn't fatal, we flush buffered data and disable keepalive, then finalize request normally. This allows to to propogate information about a problem to a client, while still sending all the data we've got from an upstream. |
||
---|---|---|
.. | ||
modules | ||
ngx_http_busy_lock.c | ||
ngx_http_busy_lock.h | ||
ngx_http_cache.h | ||
ngx_http_config.h | ||
ngx_http_copy_filter_module.c | ||
ngx_http_core_module.c | ||
ngx_http_core_module.h | ||
ngx_http_file_cache.c | ||
ngx_http_header_filter_module.c | ||
ngx_http_parse_time.c | ||
ngx_http_parse.c | ||
ngx_http_postpone_filter_module.c | ||
ngx_http_request_body.c | ||
ngx_http_request.c | ||
ngx_http_request.h | ||
ngx_http_script.c | ||
ngx_http_script.h | ||
ngx_http_spdy_filter_module.c | ||
ngx_http_spdy_module.c | ||
ngx_http_spdy_module.h | ||
ngx_http_spdy.c | ||
ngx_http_spdy.h | ||
ngx_http_special_response.c | ||
ngx_http_upstream_round_robin.c | ||
ngx_http_upstream_round_robin.h | ||
ngx_http_upstream.c | ||
ngx_http_upstream.h | ||
ngx_http_variables.c | ||
ngx_http_variables.h | ||
ngx_http_write_filter_module.c | ||
ngx_http.c | ||
ngx_http.h |