diff options
author | Roman Arutyunyan <arut@nginx.com> | 2022-11-18 19:31:38 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2022-11-18 19:31:38 +0400 |
commit | 17066ac8600412eabb1fdf8360cf6ada13f02391 (patch) | |
tree | 477cd7c7f38970d24694136707f2aa4779e9cb4b /src/os/unix/ngx_process_cycle.c | |
parent | 053e40e5d45ac76ea29b803840222461f501f1e3 (diff) | |
download | nginx-17066ac8600412eabb1fdf8360cf6ada13f02391.tar.gz nginx-17066ac8600412eabb1fdf8360cf6ada13f02391.zip |
Process events posted by ngx_close_idle_connections() immediately.
Previously, if an event was posted by a read event handler, called by
ngx_close_idle_connections(), that event was not processed until the next
event loop iteration, which could happen after a timeout.
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r-- | src/os/unix/ngx_process_cycle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 07cd05e80..821539bb7 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -736,6 +736,7 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data) ngx_set_shutdown_timer(cycle); ngx_close_listening_sockets(cycle); ngx_close_idle_connections(cycle); + ngx_event_process_posted(cycle, &ngx_posted_events); } } |