|
|
|
|
|
|
842
|
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, shm_zone->shm.log, 0,
|
842
|
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, shm_zone->shm.log, 0,
|
|
843
|
"uploadprogress clean old connections restarting timer");
|
843
|
"uploadprogress clean old connections restarting timer");
|
|
844
|
|
844
|
|
|
845
|
- ngx_add_timer(ev, TIMER_FREQUENCY); /* trigger again in 60s */
|
|
|
|
|
|
845
|
+ /* don't reschedule timer if ngx_quit or ngx_terminate && nodes emtpy */
|
|
|
|
846
|
+ if ( !(ngx_quit || ngx_terminate) && (ngx_rbtree_node_t *) ctx->list_tail.prev != &ctx->list_head.node )
|
|
|
|
847
|
+ ngx_add_timer(ev, TIMER_FREQUENCY); /* trigger again in 60s */
|
|
846
|
|
848
|
|
|
847
|
ngx_shmtx_unlock(&shpool->mutex);
|
849
|
ngx_shmtx_unlock(&shpool->mutex);
|
|
848
|
}
|
850
|
}
|