Skip to content

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

Merged
bradh352 merged 6 commits intoc-ares:mainfrom
bradh352:ares_reinit
Nov 12, 2023
Merged

Implement ares_reinit() to reload system configuration into existing channel#614
bradh352 merged 6 commits intoc-ares:mainfrom
bradh352:ares_reinit

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)

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