Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 1959:4f16186f5603
quick resolving handles u->resolved->ctx by itself
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 09 Apr 2008 14:20:17 +0000 |
parents | 3e9e4581fbba |
children | 3c540ad3021f |
comparison
equal
deleted
inserted
replaced
1958:3e9e4581fbba | 1959:4f16186f5603 |
---|---|
419 ctx->type = NGX_RESOLVE_A; | 419 ctx->type = NGX_RESOLVE_A; |
420 ctx->handler = ngx_http_upstream_resolve_handler; | 420 ctx->handler = ngx_http_upstream_resolve_handler; |
421 ctx->data = r; | 421 ctx->data = r; |
422 ctx->timeout = clcf->resolver_timeout; | 422 ctx->timeout = clcf->resolver_timeout; |
423 | 423 |
424 u->resolved->ctx = ctx; | |
425 | |
424 if (ngx_resolve_name(ctx) != NGX_OK) { | 426 if (ngx_resolve_name(ctx) != NGX_OK) { |
427 u->resolved->ctx = NULL; | |
425 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 428 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
426 return; | 429 return; |
427 } | 430 } |
428 | |
429 u->resolved->ctx = ctx; | |
430 | 431 |
431 return; | 432 return; |
432 } | 433 } |
433 | 434 |
434 found: | 435 found: |