bind9/bin/dig
Aram Sargsyan 7d360bd05e Fix "dig +nssearch" indefinitely hanging issue
When finishing the NSSEARCH task and there is no more followup
lookups to start, dig does not destroy the last lookup, which
causes it to hang indefinitely.

Rename the unused `first_pass` member of `dig_query_t` to `started`
and make it `true` in the first callback after `start_udp()` or
`start_tcp()` of the query to indicate that the query has been
started.

Create a new `check_if_queries_done()` function to check whether
all of the queries inside a lookup have been started and finished,
or canceled.

Use the mentioned function in the TRACE code block in `recv_done()`
to check whether the current query is the last one in the lookup and
cancel the lookup in that case to free the resources.
2022-04-01 10:56:27 +00:00
..
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.c Add missing plain HTTP options to dig's help output 2022-03-28 16:22:53 +03:00
dig.rst Add support for Strict/Mutual TLS to dig 2022-03-28 16:22:53 +03:00
dighost.c Fix "dig +nssearch" indefinitely hanging issue 2022-04-01 10:56:27 +00:00
dighost.h Fix "dig +nssearch" indefinitely hanging issue 2022-04-01 10:56:27 +00:00
host.c Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:33:43 +01:00
host.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 10:46:36 +01:00
Makefile.am Move the include Makefile.tests to the bottom of Makefile.am(s) 2021-06-24 15:33:52 +02:00
nslookup.c Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:33:43 +01:00
nslookup.rst Add internal hyperlinks to See Also section of manual pages 2022-03-14 10:46:36 +01:00
readline.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00