|
|
@@ -773,8 +773,8 @@ ngx_http_uploadprogress_errortracker(ngx_http_request_t *r)
|
|
773
|
773
|
upcf = ngx_http_get_module_loc_conf(r, ngx_http_uploadprogress_module);
|
|
774
|
774
|
|
|
775
|
775
|
if (!upcf->track) {
|
|
776
|
|
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
|
777
|
|
- "uploadprogress error-tracker not tracking in this location for id: %V", id);
|
|
|
776
|
+ ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
|
|
777
|
+ "uploadprogress error-tracker not tracking in this location");
|
|
778
|
778
|
goto finish;
|
|
779
|
779
|
}
|
|
780
|
780
|
|
|
|
@@ -854,9 +854,17 @@ ngx_http_uploadprogress_errortracker(ngx_http_request_t *r)
|
|
854
|
854
|
upcln->shm_zone = upcf->shm_zone;
|
|
855
|
855
|
upcln->node = node;
|
|
856
|
856
|
|
|
|
857
|
+ /* start the timer if needed */
|
|
|
858
|
+ if ( !upcf->cleanup.timer_set)
|
|
|
859
|
+ {
|
|
|
860
|
+ upcf->cleanup.data = upcf->shm_zone;
|
|
|
861
|
+ upcf->cleanup.handler = ngx_clean_old_connections;
|
|
|
862
|
+ upcf->cleanup.log = r->connection->log;
|
|
|
863
|
+ ngx_add_timer(&upcf->cleanup, 60 * 1000);
|
|
|
864
|
+ }
|
|
|
865
|
+
|
|
857
|
866
|
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
|
858
|
867
|
"trackuploads error-tracking adding: %08XD", node->key);
|
|
859
|
|
-
|
|
860
|
868
|
}
|
|
861
|
869
|
|
|
862
|
870
|
finish:
|