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

Add support for passing a timeout through to the whois query #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tow
Copy link

@tow tow commented Apr 22, 2016

When using pythonwhois for large numbers of queries, I find sometimes a whois query will hang (probably rate-limiting on the whois server)

It is useful to be able to put a timeout on the whois query so that the thread/application can recover from this failure.

This patch allows the get_whois caller to specify an optional timeout that will be applied to any connections to whois servers.

Keisial pushed a commit to Keisial/python-whois that referenced this pull request Dec 14, 2017
@extrospective
Copy link

Seems like a great idea (unless others have solved differently)

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