Klaus Demo nginx / 02aa53b
left open sockets were not really tested Igor Sysoev 14 years ago
2 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
135135
136136 /* to test on worker exit */
137137 unsigned channel:1;
138 unsigned resolver:1;
138139
139140 #if (NGX_THREADS)
140141
993993 }
994994 }
995995
996 if (ngx_quit) {
996 if (ngx_exiting) {
997997 c = cycle->connections;
998998 for (i = 0; i < cycle->connection_n; i++) {
999999 if (c[i].fd != -1
10001000 && c[i].read
10011001 && !c[i].read->accept
1002 && !c[i].read->channel)
1002 && !c[i].read->channel
1003 && !c[i].read->resolver)
10031004 {
10041005 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" : "");
10081008 ngx_debug_point();
10091009 }
10101010 }