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

set a DNS timeout #181

Merged
merged 1 commit into from
Jun 29, 2021
Merged

set a DNS timeout #181

merged 1 commit into from
Jun 29, 2021

Conversation

lostapathy
Copy link
Contributor

@lostapathy lostapathy commented Jun 29, 2021

Ready for feedback on how I put this together to set a default 5s DNS timeout.

I didn't add any fresh tests to cover this because I'm not sure offhand how to mock that in rspec, but I can dig into that if needed and the API is acceptable.

resolves #180

thanks!

@lostapathy lostapathy changed the title set a DNS timeout, resolves #180 set a DNS timeout Jun 29, 2021
@micke
Copy link
Owner

micke commented Jun 29, 2021

Thanks!

@micke micke merged commit 5fbca05 into micke:master Jun 29, 2021
@micke
Copy link
Owner

micke commented Jun 29, 2021

I've released version 4.0.0 of the gem with this feature!
I decided to make it a major release which might seem to be a bit over the top but as the default timeout might cause unexpected errors for some. Cutting a new major release hopefully makes sure that people read the release notes.

Thanks agin for this!

@lostapathy
Copy link
Contributor Author

Thanks for cutting a release so quickly! I've got this in production and it's working great now.

@lostapathy lostapathy deleted the dns_timeouts branch July 13, 2021 14:30
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.

Could we set a "reasonable" timeout for dns resolution?
2 participants