mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue