Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_process_cycle.c @ 1905:0cafbfd8112e
left open sockets were not really tested
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 28 Feb 2008 20:31:33 +0000 |
parents | 55a9d867e3c8 |
children | c509e16b70f5 |
comparison
equal
deleted
inserted
replaced
1904:538f06aa8118 | 1905:0cafbfd8112e |
---|---|
992 if (ngx_modules[i]->exit_process) { | 992 if (ngx_modules[i]->exit_process) { |
993 ngx_modules[i]->exit_process(cycle); | 993 ngx_modules[i]->exit_process(cycle); |
994 } | 994 } |
995 } | 995 } |
996 | 996 |
997 if (ngx_quit) { | 997 if (ngx_exiting) { |
998 c = cycle->connections; | 998 c = cycle->connections; |
999 for (i = 0; i < cycle->connection_n; i++) { | 999 for (i = 0; i < cycle->connection_n; i++) { |
1000 if (c[i].fd != -1 | 1000 if (c[i].fd != -1 |
1001 && c[i].read | 1001 && c[i].read |
1002 && !c[i].read->accept | 1002 && !c[i].read->accept |
1003 && !c[i].read->channel) | 1003 && !c[i].read->channel |
1004 && !c[i].read->resolver) | |
1004 { | 1005 { |
1005 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, | 1006 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, |
1006 "open socket #%d left in %ui connection, " | 1007 "open socket #%d left in %ui connection %s", |
1007 "aborting", | 1008 c[i].fd, i, ngx_debug_quit ? ", aborting" : ""); |
1008 c[i].fd, i); | |
1009 ngx_debug_point(); | 1009 ngx_debug_point(); |
1010 } | 1010 } |
1011 } | 1011 } |
1012 | 1012 |
1013 if (ngx_debug_quit) { | 1013 if (ngx_debug_quit) { |