]> git.kaiwu.me - nginx.git/commit
Cancelable timers are now preserved if there are other timers.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 7 Mar 2017 15:51:15 +0000 (18:51 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 7 Mar 2017 15:51:15 +0000 (18:51 +0300)
commit1a58418ae76a96c830a0536432e96a9ad051bc58
treefb1df1b233a9225fdcf343abeffbfb903fb19b3f
parent0212c7fac1a63d33c9b0084ed75803713af8a230
Cancelable timers are now preserved if there are other timers.

There is no need to cancel timers early if there are other timers blocking
shutdown anyway.  Preserving such timers allows nginx to continue some
periodic work till the shutdown is actually possible.

With the new approach, timers with ev->cancelable are simply ignored when
checking if there are any timers left during shutdown.
src/event/ngx_event_timer.c
src/event/ngx_event_timer.h
src/os/unix/ngx_process_cycle.c
src/os/win32/ngx_process_cycle.c