Skip to content

Commit

Permalink
Resolver: fixed possible premature stop of the resend timer.
Browse files Browse the repository at this point in the history
Previously, ngx_resolve_name_done() and ngx_resolve_addr_done()
may have stopped the resend timer prematurely while srv_resend_queue
was not empty.
  • Loading branch information
xeioex committed Dec 16, 2016
1 parent 3a85322 commit 6b18bb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/ngx_resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b18bb5

Please sign in to comment.