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

[Feature Request] Timeout in whois api #240

Open
kalpeshmantri opened this issue Sep 18, 2024 · 1 comment
Open

[Feature Request] Timeout in whois api #240

kalpeshmantri opened this issue Sep 18, 2024 · 1 comment

Comments

@kalpeshmantri
Copy link

Is it possible to add atimeout in whois API, something like:

# Set a 3-second timeout for the WHOIS request
whois.whois(domain, timeout=3)

I currently use socket.setdefaulttimeout(3) to set a global timeout for all socket connections, but it affects all system processes that use sockets.

Thank you for consideration !

@richardpenman
Copy link
Owner

Good idea - a PR to support this would be very welcome

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

No branches or pull requests

2 participants