Преглед на файлове

remove all current uploads from shared cache in case of quit

tags/v0.5
Brice Figureau преди 17 години
родител
ревизия
3f524b8c34
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      ngx_http_uploadprogress_module.c

+ 1
- 1
ngx_http_uploadprogress_module.c Целия файл

@@ -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
 

Loading…
Отказ
Запис