mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Resolver: fixed possible premature stop of the resend timer.
Previously, ngx_resolve_name_done() and ngx_resolve_addr_done() may have stopped the resend timer prematurely while srv_resend_queue was not empty.
This commit is contained in:
parent
3a8532219a
commit
6b18bb541e
@ -1556,6 +1556,7 @@ static ngx_uint_t
|
||||
ngx_resolver_resend_empty(ngx_resolver_t *r)
|
||||
{
|
||||
return ngx_queue_empty(&r->name_resend_queue)
|
||||
&& ngx_queue_empty(&r->srv_resend_queue)
|
||||
#if (NGX_HAVE_INET6)
|
||||
&& ngx_queue_empty(&r->addr6_resend_queue)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user