details: http://hg.nginx.org/nginx/rev/c3e3de6d2672
branches:
changeset: 6714:c3e3de6d2672
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Sep 29 19:40:47 2016 +0300
description:
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.
diffstat:
src/core/ngx_resolver.c | 1 +
src/core/ngx_resolver.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 63b8b157b776 -r c3e3de6d2672 src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c Thu Sep 29 18:06:05 2016 +0300
+++ b/src/core/ngx_resolver.c Thu Sep 29 19:40:47 2016 +0300
@@ -3006,6 +3006,7 @@ ngx_resolver_srv_names_handler(ngx_resol
ctx->count--;
srv->ctx = NULL;
+ srv->state = cctx->state;
if (cctx->naddrs) {
diff -r 63b8b157b776 -r c3e3de6d2672 src/core/ngx_resolver.h
--- a/src/core/ngx_resolver.h Thu Sep 29 18:06:05 2016 +0300
+++ b/src/core/ngx_resolver.h Thu Sep 29 19:40:47 2016 +0300
@@ -82,6 +82,7 @@ typedef struct {
u_short port;
ngx_resolver_ctx_t *ctx;
+ ngx_int_t state;
ngx_uint_t naddrs;
ngx_addr_t *addrs;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel