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

Let users set a custom timeout or number of retries for the Dig handler #115

Merged
merged 3 commits into from
Apr 10, 2025

Conversation

Kovah
Copy link
Contributor

@Kovah Kovah commented Apr 8, 2025

This PR adds two new properties with their corresponding getters and setters:

  • timeout
  • retries

Both are used within the Dig handler. This enables the user to make the queries more resistant to network / connectivity issues. The defaults (2 retries with a timeout of 2 seconds) remain the same.
Tests were added according to the existing ones for setting a nameserver.

@freekmurze
Copy link
Member

Very nice, thanks!

@freekmurze freekmurze merged commit 85c73a8 into spatie:main Apr 10, 2025
6 checks passed
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