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

RUBY-1934 clean up DNS server termination #2903

Merged
merged 5 commits into from
Nov 5, 2024

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Oct 23, 2024

RUBY-1934 originally called for pulling in another dependency (async-container) to manage the DNS server, but I don't think it's necessary. The async-container code would be doing essentially what we already had, just with a cleaner technique for sending the termination signal.

This PR does some refactoring to make the DNS mocking easier to reason about, and leans on the Async lib that RubyDNS is built on top of to run the server transparently in the background.

The ticket originally called for pulling in another dependency to manage
the DNS server, but I don't think it's necessary. The async-container
code would be doing essentially what we already had, just with a cleaner
technique for sending the termination signal.
@jamis jamis requested a review from comandeo-mongo October 23, 2024 21:36
@jamis jamis requested review from comandeo-mongo and removed request for comandeo-mongo November 4, 2024 19:34
@jamis jamis merged commit 4b9b347 into mongodb:master Nov 5, 2024
258 checks passed
@jamis jamis deleted the 1934-mocking-dns branch November 5, 2024 15:50
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.

2 participants