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

Implement ares_reinit() to reload system configuration into existing channel #614

Merged
merged 6 commits into from Nov 12, 2023

Conversation

bradh352
Copy link
Member

This PR implements ares_reinit() to safely reload a channel's configuration even if there are existing queries. This function can be called when system configuration is detected to be changed, however since c-ares isn't thread aware, care must be taken to ensure no other c-ares calls are in progress at the time this function is called. Also, this function may update the open file descriptor list so care must also be taken to wake any event loops and reprocess the list of file descriptors.

Fixes Bug #301

Fix By: Brad House (@bradh352)

@bradh352 bradh352 merged commit 0cc570e into c-ares:main Nov 12, 2023
4 of 25 checks passed
@bradh352 bradh352 deleted the ares_reinit branch November 12, 2023 20:03
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