Przeglądaj źródła

remove all current uploads from shared cache in case of quit

tags/v0.5
Brice Figureau 18 lat temu
rodzic
commit
3f524b8c34
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      ngx_http_uploadprogress_module.c

+ 1
- 1
ngx_http_uploadprogress_module.c Wyświetl plik

826
                        "uploadprogress clean: scanning %08XD (req done %ui) timeout at %T",
826
                        "uploadprogress clean: scanning %08XD (req done %ui) timeout at %T",
827
                        node->key, up->done, up->timeout);
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
             up->next->prev = up->prev;
830
             up->next->prev = up->prev;
831
             up->prev->next = up->next;
831
             up->prev->next = up->next;
832
 
832
 

Ładowanie…
Anuluj
Zapisz