[nginx] Added connection serial number in logging of left open s...

Sergey Kandaurov pluknet at nginx.com
Thu Mar 6 19:17:21 UTC 2014


details:   http://hg.nginx.org/nginx/rev/e45fa57ef725
branches:  
changeset: 5601:e45fa57ef725
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Thu Mar 06 23:15:10 2014 +0400
description:
Added connection serial number in logging of left open sockets.

diffstat:

 src/os/unix/ngx_process_cycle.c  |  4 ++--
 src/os/win32/ngx_process_cycle.c |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 957d734362ed -r e45fa57ef725 src/os/unix/ngx_process_cycle.c
--- a/src/os/unix/ngx_process_cycle.c	Thu Mar 06 18:25:59 2014 +0400
+++ b/src/os/unix/ngx_process_cycle.c	Thu Mar 06 23:15:10 2014 +0400
@@ -1046,8 +1046,8 @@ ngx_worker_process_exit(ngx_cycle_t *cyc
                 && !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;
             }
         }
diff -r 957d734362ed -r e45fa57ef725 src/os/win32/ngx_process_cycle.c
--- a/src/os/win32/ngx_process_cycle.c	Thu Mar 06 18:25:59 2014 +0400
+++ b/src/os/win32/ngx_process_cycle.c	Thu Mar 06 23:15:10 2014 +0400
@@ -881,8 +881,8 @@ ngx_worker_process_exit(ngx_cycle_t *cyc
                 && !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);
             }
         }
     }



More information about the nginx-devel mailing list