|
|
@@ -798,7 +798,7 @@ ngx_clean_old_connections(ngx_event_t * ev)
|
|
798
|
798
|
ngx_http_uploadprogress_ctx_t *ctx;
|
|
799
|
799
|
ngx_slab_pool_t *shpool;
|
|
800
|
800
|
ngx_rbtree_node_t *node;
|
|
801
|
|
- ngx_http_uploadprogress_node_t *up;
|
|
|
801
|
+ ngx_http_uploadprogress_node_t *up, *upprev;
|
|
802
|
802
|
time_t now = ngx_time();
|
|
803
|
803
|
int count = 0;
|
|
804
|
804
|
|
|
|
@@ -821,6 +821,7 @@ ngx_clean_old_connections(ngx_event_t * ev)
|
|
821
|
821
|
}
|
|
822
|
822
|
|
|
823
|
823
|
up = (ngx_http_uploadprogress_node_t *) node;
|
|
|
824
|
+ upprev = up->prev;
|
|
824
|
825
|
|
|
825
|
826
|
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, shm_zone->shm.log, 0,
|
|
826
|
827
|
"uploadprogress clean: scanning %08XD (req done %ui) timeout at %T",
|
|
|
@@ -839,7 +840,7 @@ ngx_clean_old_connections(ngx_event_t * ev)
|
|
839
|
840
|
}
|
|
840
|
841
|
else
|
|
841
|
842
|
count++;
|
|
842
|
|
- node = (ngx_rbtree_node_t *) up->prev;
|
|
|
843
|
+ node = (ngx_rbtree_node_t *) upprev;
|
|
843
|
844
|
}
|
|
844
|
845
|
|
|
845
|
846
|
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, shm_zone->shm.log, 0,
|