comparison src/core/ngx_resolver.h @ 7052:70e65bf8dfd7

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.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 04 Jul 2017 18:50:41 +0300
parents d49b74a683b1
children 2a77754cd9fe
comparison
equal deleted inserted replaced
7051:137c5be7df09 7052:70e65bf8dfd7
218 void *data; 218 void *data;
219 ngx_msec_t timeout; 219 ngx_msec_t timeout;
220 220
221 unsigned quick:1; 221 unsigned quick:1;
222 unsigned async:1; 222 unsigned async:1;
223 unsigned cancelable:1;
223 ngx_uint_t recursion; 224 ngx_uint_t recursion;
224 ngx_event_t *event; 225 ngx_event_t *event;
225 }; 226 };
226 227
227 228