left open sockets were not really tested
Igor Sysoev
14 years ago
993 | 993 |
}
|
994 | 994 |
}
|
995 | 995 |
|
996 | |
if (ngx_quit) {
|
|
996 |
if (ngx_exiting) {
|
997 | 997 |
c = cycle->connections;
|
998 | 998 |
for (i = 0; i < cycle->connection_n; i++) {
|
999 | 999 |
if (c[i].fd != -1
|
1000 | 1000 |
&& c[i].read
|
1001 | 1001 |
&& !c[i].read->accept
|
1002 | |
&& !c[i].read->channel)
|
|
1002 |
&& !c[i].read->channel
|
|
1003 |
&& !c[i].read->resolver)
|
1003 | 1004 |
{
|
1004 | 1005 |
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
|
1005 | |
"open socket #%d left in %ui connection, "
|
1006 | |
"aborting",
|
1007 | |
c[i].fd, i);
|
|
1006 |
"open socket #%d left in %ui connection %s",
|
|
1007 |
c[i].fd, i, ngx_debug_quit ? ", aborting" : "");
|
1008 | 1008 |
ngx_debug_point();
|
1009 | 1009 |
}
|
1010 | 1010 |
}
|