Skip to content

Tool: STAYOPEN flag could make tools not terminate - #569

Merged
bradh352 merged 1 commit into
c-ares:mainfrom
bradh352:tools
Oct 10, 2023
Merged

Tool: STAYOPEN flag could make tools not terminate#569
bradh352 merged 1 commit into
c-ares:mainfrom
bradh352:tools

Conversation

@bradh352

Copy link
Copy Markdown
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
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.

1 participant