mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix debug point for left open sockets
This commit is contained in:
parent
45ec56bdca
commit
c287a9811e
@ -1017,13 +1017,14 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
|
|||||||
&& !c[i].read->resolver)
|
&& !c[i].read->resolver)
|
||||||
{
|
{
|
||||||
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
|
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
|
||||||
"open socket #%d left in connection %ui%s",
|
"open socket #%d left in connection %ui",
|
||||||
c[i].fd, i, ngx_debug_quit ? ", aborting" : "");
|
c[i].fd, i);
|
||||||
ngx_debug_point();
|
ngx_debug_quit = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngx_debug_quit) {
|
if (ngx_debug_quit) {
|
||||||
|
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "aborting");
|
||||||
ngx_debug_point();
|
ngx_debug_point();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user