php-dns-client icon indicating copy to clipboard operation
php-dns-client copied to clipboard

Add socket read timeout, fix global error handler

Open fedor-betcity opened this issue 3 years ago • 0 comments

Add timeout for reading data, see Note here - https://www.php.net/manual/en/function.fsockopen.php

Error handler which is set here - https://github.com/metaregistrar/php-dns-client/blob/master/DNS/dnsProtocol.php#L57 is never removed and turns all user code errors into dnsException.

fedor-betcity avatar Nov 15 '22 13:11 fedor-betcity