comparison src/core/ngx_cycle.c @ 110:dad2fe8ecf08 NGINX_0_3_2

nginx 0.3.2 *) 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 <http://sysoev.ru>
date Wed, 12 Oct 2005 00:00:00 +0400
parents 45945fa8b8ba
children 408f195b3482
comparison
equal deleted inserted replaced
109:97da525033a1 110:dad2fe8ecf08
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;