]> git.kaiwu.me - nginx.git/commitdiff
Added connection serial number in logging of left open sockets.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 6 Mar 2014 19:15:10 +0000 (23:15 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 6 Mar 2014 19:15:10 +0000 (23:15 +0400)
src/os/unix/ngx_process_cycle.c
src/os/win32/ngx_process_cycle.c

index 499039a7ea8a40a0f1fadb1ff53e882063d3b533..be55cea201b7bd46c617ab867d0f5c36a0ff179e 100644 (file)
@@ -1046,8 +1046,8 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
                 && !c[i].read->resolver)
             {
                 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
-                              "open socket #%d left in connection %ui",
-                              c[i].fd, i);
+                              "*%uA open socket #%d left in connection %ui",
+                              c[i].number, c[i].fd, i);
                 ngx_debug_quit = 1;
             }
         }
index b5a1022c773113e432ba586d556fe02170e88b12..be8d9ac65e830a57c5ffa9593a751277a3cb0835 100644 (file)
@@ -881,8 +881,8 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
                 && !c[i].read->resolver)
             {
                 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
-                              "open socket #%d left in connection %ui",
-                              c[i].fd, i);
+                              "*%uA open socket #%d left in connection %ui",
+                              c[i].number, c[i].fd, i);
             }
         }
     }