Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 561:e48ebafc6939 release-0.3.2
nginx-0.3.2-RELEASE import
*) Feature: the Sun Studio 10 C compiler support.
*) Feature: the "proxy_upstream_max_fails",
"proxy_upstream_fail_timeout", "fastcgi_upstream_max_fails", and
"fastcgi_upstream_fail_timeout" directives.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 12 Oct 2005 13:50:36 +0000 |
parents | 511a89da35ad |
children | 9c2f3ed7a247 |
comparison
equal
deleted
inserted
replaced
560:8886091eddd2 | 561:e48ebafc6939 |
---|---|
625 ngx_close_file_n " \"%s\" failed", | 625 ngx_close_file_n " \"%s\" failed", |
626 file[i].name.data); | 626 file[i].name.data); |
627 } | 627 } |
628 } | 628 } |
629 | 629 |
630 if (old_cycle->connections0 == NULL) { | 630 if (old_cycle->connections == NULL) { |
631 /* an old cycle is an init cycle */ | 631 /* an old cycle is an init cycle */ |
632 ngx_destroy_pool(old_cycle->pool); | 632 ngx_destroy_pool(old_cycle->pool); |
633 return cycle; | 633 return cycle; |
634 } | 634 } |
635 | 635 |
957 } | 957 } |
958 | 958 |
959 found = 0; | 959 found = 0; |
960 | 960 |
961 for (n = 0; n < cycle[i]->connection_n; n++) { | 961 for (n = 0; n < cycle[i]->connection_n; n++) { |
962 if (cycle[i]->connections0[n].fd != (ngx_socket_t) -1) { | 962 if (cycle[i]->connections[n].fd != (ngx_socket_t) -1) { |
963 found = 1; | 963 found = 1; |
964 | 964 |
965 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "live fd:%d", n); | 965 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "live fd:%d", n); |
966 | 966 |
967 break; | 967 break; |