Welcome! Log In Create A New Profile

Advanced

[nginx] Resolver: introduced state field in ngx_resolver_srv_name_t.

Dmitry Volyntsev
October 03, 2016 07:02AM
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
Subject Author Views Posted

[nginx] Resolver: introduced state field in ngx_resolver_srv_name_t.

Dmitry Volyntsev 647 October 03, 2016 07:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready