|
|
@@ -826,7 +826,7 @@ ngx_clean_old_connections(ngx_event_t * ev)
|
|
826
|
826
|
"uploadprogress clean: scanning %08XD (req done %ui) timeout at %T",
|
|
827
|
827
|
node->key, up->done, up->timeout);
|
|
828
|
828
|
|
|
829
|
|
- if (up->done && up->timeout < now) {
|
|
|
829
|
+ if ( (up->done && up->timeout < now) || (ngx_quit || ngx_terminate || ngx_exiting) ) {
|
|
830
|
830
|
up->next->prev = up->prev;
|
|
831
|
831
|
up->prev->next = up->next;
|
|
832
|
832
|
|