Mercurial > hg > nginx-vendor-current
comparison src/core/ngx_resolver.c @ 484:ed5e10fb40fc NGINX_0_7_54
nginx 0.7.54
*) Feature: the ngx_http_image_filter_module.
*) Feature: the "proxy_ignore_headers" and "fastcgi_ignore_headers"
directives.
*) Bugfix: a segmentation fault might occur in worker process, if an
"open_file_cache_errors off" directive was used; the bug had
appeared in 0.7.53.
*) Bugfix: the "port_in_redirect off" directive did not work; the bug
had appeared in 0.7.39.
*) Bugfix: improve handling of "select" method errors.
*) Bugfix: of "select() failed (10022: ...)" error in nginx/Windows.
*) Bugfix: in error text descriptions in nginx/Windows; the bug had
appeared in 0.7.53.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 01 May 2009 00:00:00 +0400 |
parents | 670af56a1158 |
children | 005a70f9573b |
comparison
equal
deleted
inserted
replaced
483:0a2f4b42ddad | 484:ed5e10fb40fc |
---|---|
129 ngx_queue_init(&r->name_expire_queue); | 129 ngx_queue_init(&r->name_expire_queue); |
130 ngx_queue_init(&r->addr_expire_queue); | 130 ngx_queue_init(&r->addr_expire_queue); |
131 | 131 |
132 r->event->handler = ngx_resolver_resend_handler; | 132 r->event->handler = ngx_resolver_resend_handler; |
133 r->event->data = r; | 133 r->event->data = r; |
134 r->event->log = cf->cycle->new_log; | 134 r->event->log = &cf->cycle->new_log; |
135 r->ident = -1; | 135 r->ident = -1; |
136 | 136 |
137 r->resend_timeout = 5; | 137 r->resend_timeout = 5; |
138 r->expire = 30; | 138 r->expire = 30; |
139 r->valid = 300; | 139 r->valid = 300; |
140 | 140 |
141 r->log = cf->cycle->new_log; | 141 r->log = &cf->cycle->new_log; |
142 r->log_level = NGX_LOG_ALERT; | 142 r->log_level = NGX_LOG_ALERT; |
143 | 143 |
144 if (addr) { | 144 if (addr) { |
145 uc = ngx_calloc(sizeof(ngx_udp_connection_t), cf->log); | 145 uc = ngx_calloc(sizeof(ngx_udp_connection_t), cf->log); |
146 if (uc == NULL) { | 146 if (uc == NULL) { |
150 r->udp_connection = uc; | 150 r->udp_connection = uc; |
151 | 151 |
152 uc->sockaddr = addr->sockaddr; | 152 uc->sockaddr = addr->sockaddr; |
153 uc->socklen = addr->socklen; | 153 uc->socklen = addr->socklen; |
154 uc->server = addr->name; | 154 uc->server = addr->name; |
155 uc->log = cf->cycle->new_log; | 155 uc->log = &cf->cycle->new_log; |
156 } | 156 } |
157 | 157 |
158 return r; | 158 return r; |
159 } | 159 } |
160 | 160 |