Added connection serial number in logging of left open sockets.

This commit is contained in:
Sergey Kandaurov 2014-03-06 23:15:10 +04:00
parent bd3516e8d9
commit f9e7687e55
2 changed files with 4 additions and 4 deletions

View 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;
}
}

View 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);
}
}
}