mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 17:46:40 -04:00
Fix DiG query retry and fail-over bug
When the `send_done()` callback function gets called with a failure result code, DiG erroneously cancels the lookup. Stop canceling the lookup and give DiG a chance to retry the failed query, or fail-over to another server, using the logic implemented in the `recv_done()` callback function. (cherry picked from commit c2329dd110e88a194be4d9a3fe1571dbae8af178)
This commit is contained in:
parent
be8ec6ef18
commit
6efb73d4bb
1 changed files with 0 additions and 1 deletions
|
|
@ -2705,7 +2705,6 @@ send_done(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) {
|
|||
return;
|
||||
} else if (eresult != ISC_R_SUCCESS) {
|
||||
debug("send failed: %s", isc_result_totext(eresult));
|
||||
cancel_lookup(l);
|
||||
query_detach(&query);
|
||||
lookup_detach(&l);
|
||||
UNLOCK_LOOKUP;
|
||||
|
|
|
|||
Loading…
Reference in a new issue