mirror of
https://github.com/nginx/nginx.git
synced 2026-09-05 04:48:28 +00:00
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. |
||
|---|---|---|
| .. | ||
| ngx_stream.c | ||
| ngx_stream.h | ||
| ngx_stream_access_module.c | ||
| ngx_stream_core_module.c | ||
| ngx_stream_geo_module.c | ||
| ngx_stream_geoip_module.c | ||
| ngx_stream_handler.c | ||
| ngx_stream_limit_conn_module.c | ||
| ngx_stream_log_module.c | ||
| ngx_stream_map_module.c | ||
| ngx_stream_proxy_module.c | ||
| ngx_stream_realip_module.c | ||
| ngx_stream_return_module.c | ||
| ngx_stream_script.c | ||
| ngx_stream_script.h | ||
| ngx_stream_split_clients_module.c | ||
| ngx_stream_ssl_module.c | ||
| ngx_stream_ssl_module.h | ||
| ngx_stream_ssl_preread_module.c | ||
| ngx_stream_upstream.c | ||
| ngx_stream_upstream.h | ||
| ngx_stream_upstream_hash_module.c | ||
| ngx_stream_upstream_least_conn_module.c | ||
| ngx_stream_upstream_round_robin.c | ||
| ngx_stream_upstream_round_robin.h | ||
| ngx_stream_upstream_zone_module.c | ||
| ngx_stream_variables.c | ||
| ngx_stream_variables.h | ||
| ngx_stream_write_filter_module.c | ||