comparison src/core/ngx_resolver.c @ 6714:c3e3de6d2672

Resolver: introduced state field in ngx_resolver_srv_name_t. It keeps the actual state value of a DNS SRV subrequest and can be used to report a more detailed log for failed SRV records.
author Dmitry Volyntsev <xeioex@nginx.com>
date Thu, 29 Sep 2016 19:40:47 +0300
parents b3b7e33083ac
children a3dc657f4e95
comparison
equal deleted inserted replaced
6713:63b8b157b776 6714:c3e3de6d2672
3004 srv = cctx->srvs; 3004 srv = cctx->srvs;
3005 3005
3006 ctx->count--; 3006 ctx->count--;
3007 3007
3008 srv->ctx = NULL; 3008 srv->ctx = NULL;
3009 srv->state = cctx->state;
3009 3010
3010 if (cctx->naddrs) { 3011 if (cctx->naddrs) {
3011 3012
3012 ctx->valid = ngx_min(ctx->valid, cctx->valid); 3013 ctx->valid = ngx_min(ctx->valid, cctx->valid);
3013 3014