Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool: STAYOPEN flag could make tools not terminate #569

Merged
merged 1 commit into from Oct 10, 2023

Conversation

bradh352
Copy link
Member

If a flag is set to keep the connections to the DNS servers open even if there are no queries, the tools would not exit until the remote server closed the connection due to the user of ares_fds() to determine if there are any active queries. Instead, rely on ares_timeout() returning NULL if there are no active queries (technically this returns the value passed to max_tv in ares_timeout(), but in our use case, that is always NULL).

Fixes Issue: #452
Fix By: Brad House (@bradh352)

… if the stayopen flag is set. use ares_timeout() instead
@bradh352 bradh352 merged commit 4d12e69 into c-ares:main Oct 10, 2023
12 of 26 checks passed
@bradh352 bradh352 deleted the tools branch October 10, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant