]> git.kaiwu.me - nginx.git/commit
Silenced complaints about socket leaks on forced termination.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 29 Jan 2024 07:29:39 +0000 (10:29 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 29 Jan 2024 07:29:39 +0000 (10:29 +0300)
commitcc4c3ee0a45ca3a2eeac2874e9199bf42560015c
tree03789f919ee9619d735e8942a769e2b8c0d8db5c
parentf255815f5d161fab0dd310fe826d4f7572e141f2
Silenced complaints about socket leaks on forced termination.

When graceful shutdown was requested, and then nginx was forced to
do fast shutdown, it used to (incorrectly) complain about open sockets
left in connections which weren't yet closed when fast shutdown
was requested.

Fix is to avoid complaining about open sockets when fast shutdown was
requested after graceful one.  Abnormal termination, if requested with
the WINCH signal, can still happen though.
src/os/unix/ngx_process_cycle.c
src/os/win32/ngx_process_cycle.c