joepie91 / python-whois

A python module for retrieving and parsing WHOIS data
Do What The F*ck You Want To Public License
399 stars 187 forks source link

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

Open tow opened 8 years ago

tow commented 8 years ago

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.

extrospective commented 6 years ago

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