nginx/src/http
Maxim Dounin b32cb6b610 Fixed worker_shutdown_timeout in various cases.
The ngx_http_upstream_process_upgraded() did not handle c->close request,
and upgraded connections do not use the write filter.  As a result,
worker_shutdown_timeout did not affect upgraded connections (ticket #1419).
Fix is to handle c->close in the ngx_http_request_handler() function, thus
covering most of the possible cases in http handling.

Additionally, mail proxying did not handle neither c->close nor c->error,
and thus worker_shutdown_timeout did not work for mail connections.  Fix is
to add c->close handling to ngx_mail_proxy_handler().

Also, added explicit handling of c->close to stream proxy,
ngx_stream_proxy_process_connection().  This improves worker_shutdown_timeout
handling in stream, it will no longer wait for some data being transferred
in a connection before closing it, and will also provide appropriate
logging at the "info" level.
2017-11-20 16:31:07 +03:00
..
modules Gzip: support for a zlib variant from Intel. 2017-11-18 04:03:27 +03:00
v2 HTTP/2: enforce writing the sync request body buffer to file. 2017-10-04 21:15:15 +03:00
ngx_http_cache.h Cache: increased cache header Vary and ETag lengths to 128. 2017-02-10 17:49:19 +03:00
ngx_http_config.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_http_copy_filter_module.c Copy filter: wake up subrequests after aio operations. 2017-03-28 18:15:42 +03:00
ngx_http_core_module.c Precontent phase. 2017-07-20 15:51:11 +03:00
ngx_http_core_module.h Precontent phase. 2017-07-20 15:51:11 +03:00
ngx_http_file_cache.c Cache: fixed max_size on win32. 2017-07-26 13:13:51 +03:00
ngx_http_header_filter_module.c Don't pretend we support HTTP major versions >1 as HTTP/1.1. 2017-04-25 23:39:13 +03:00
ngx_http_parse.c Parenthesized ASCII-related calculations. 2017-07-17 17:23:51 +03:00
ngx_http_postpone_filter_module.c Postpone filter: handled ngx_http_postpone_filter_add() failures. 2017-10-16 13:13:25 +03:00
ngx_http_request_body.c HTTP/2: reduced difference to HTTP/1.x in reading request body. 2017-04-24 14:17:13 +03:00
ngx_http_request.c Fixed worker_shutdown_timeout in various cases. 2017-11-20 16:31:07 +03:00
ngx_http_request.h Upstream: keep request body file from removal if requested. 2017-07-19 20:38:17 +03:00
ngx_http_script.c Fixed ngx_open_cached_file() error handling. 2017-03-28 14:21:38 +03:00
ngx_http_script.h Win32: support 64-bit compilation with MSVC. 2016-12-24 18:01:14 +03:00
ngx_http_special_response.c Don't pretend we support HTTP major versions >1 as HTTP/1.1. 2017-04-25 23:39:13 +03:00
ngx_http_upstream_round_robin.c Upstream: added the ngx_http_upstream_resolved_t.name field. 2016-10-31 18:33:33 +03:00
ngx_http_upstream_round_robin.h Modules compatibility: compatibility with NGX_HTTP_SSL. 2016-10-10 18:44:17 +03:00
ngx_http_upstream.c Upstream: fixed $upstream_status when upstream returns 503/504. 2017-10-11 22:04:28 +03:00
ngx_http_upstream.h Modules compatibility: down flag promoted to a bitmask. 2017-09-22 22:49:42 +03:00
ngx_http_variables.c Fixed handling of unix sockets in $binary_remote_addr. 2017-10-04 21:19:42 +03:00
ngx_http_variables.h Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_http_write_filter_module.c Fixed logging. 2016-03-31 02:33:57 +03:00
ngx_http.c Precontent phase. 2017-07-20 15:51:11 +03:00
ngx_http.h Modules compatibility: http2. 2016-10-03 15:58:22 +03:00