Open tow opened 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.
Seems like a great idea (unless others have solved differently)
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.