diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2017-07-04 18:50:41 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2017-07-04 18:50:41 +0300 |
| commit | 6330817a96bbe2227dd6f2cfeaa785ed27c169a0 (patch) | |
| tree | 7197ea1fbae08d8afe40c55dc994dab4d2117115 /src/core/ngx_resolver.h | |
| parent | 225a5c7704f0c98d91fd908c210d3957454ef20e (diff) | |
| download | nginx-6330817a96bbe2227dd6f2cfeaa785ed27c169a0.tar.gz nginx-6330817a96bbe2227dd6f2cfeaa785ed27c169a0.tar.bz2 | |
Resolver: cancelable resend timer event.
It is safe because re-sending still works during graceful shutdown as
long as resolving takes place (and resolve tasks set their own timeouts
that are not cancelable).
Also, the new ctx->cancelable flag can be set to make resolve task's
timeout event cancelable.
Diffstat (limited to 'src/core/ngx_resolver.h')
| -rw-r--r-- | src/core/ngx_resolver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_resolver.h b/src/core/ngx_resolver.h index 6f099b70f..0bd392189 100644 --- a/src/core/ngx_resolver.h +++ b/src/core/ngx_resolver.h @@ -220,6 +220,7 @@ struct ngx_resolver_ctx_s { unsigned quick:1; unsigned async:1; + unsigned cancelable:1; ngx_uint_t recursion; ngx_event_t *event; }; |
