aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_resolver.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2017-06-14 18:13:31 +0300
committerRoman Arutyunyan <arut@nginx.com>2017-06-14 18:13:31 +0300
commit439e205255267662c04d13c3404937e3324e06a5 (patch)
treec76ec9ca2d5db5167ba6a98f83a98cc84517afff /src/core/ngx_resolver.h
parentb0b24e8a30d0cd412b9f1a7a67d3030580b6acf6 (diff)
downloadnginx-439e205255267662c04d13c3404937e3324e06a5.tar.gz
nginx-439e205255267662c04d13c3404937e3324e06a5.zip
Resolver: added the "async" flag to resolver context.
The flag indicates that the resolve handler is called asynchronously after the resolve function ngx_resolve_name()/ngx_resolve_addr() exited.
Diffstat (limited to 'src/core/ngx_resolver.h')
-rw-r--r--src/core/ngx_resolver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_resolver.h b/src/core/ngx_resolver.h
index a0d6fc341..6f099b70f 100644
--- a/src/core/ngx_resolver.h
+++ b/src/core/ngx_resolver.h
@@ -218,7 +218,8 @@ struct ngx_resolver_ctx_s {
void *data;
ngx_msec_t timeout;
- ngx_uint_t quick; /* unsigned quick:1; */
+ unsigned quick:1;
+ unsigned async:1;
ngx_uint_t recursion;
ngx_event_t *event;
};