io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
437 stars 117 forks source link

Timeout option #187

Closed sirkokoenig closed 1 year ago

sirkokoenig commented 2 years ago

Maybe I didn´t find the option, but I want to set a manual timeout. Some servers aren´t answering and then the script will run over 30s... I tried with CURL Loader, without success.

bessone commented 2 years ago

Have you tried with SocketLoader? https://github.com/io-developer/php-whois/blob/9f93d372f2680f8185fb775cc71950dcdd9ce374/src/Iodev/Whois/Loaders/SocketLoader.php#L34