]> granicus.if.org Git - libevent/commit
evdns: fail ns after we are failing/retrasmitting request
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 29 Sep 2014 21:34:04 +0000 (01:34 +0400)
committerAzat Khuzhin <a3at.mail@gmail.com>
Mon, 29 Sep 2014 21:40:44 +0000 (01:40 +0400)
commit97c750d6602517f22a1100f16592b421c38f2a45
tree4bb8d1baa35d13e0ddf485708dad69c95370f65b
parent3ca9d43d3233c6946de9fa31932586b905cb8d16
evdns: fail ns after we are failing/retrasmitting request

In case we are failing request (evdns_request_timeout_callback()), we
delete timeout_event in request_finished(), while just before calling
request_finished() (for failing request) there was a call to
nameserver_failed(), that add event for timeout_event, IOW we must fail
ns after request because otherwise we will not have timeout_event
actived, and we will waiting forever.

Before this patch the dns/retry_disable_when_inactive will wait forever,
after - OK.
evdns.c