Catch DNS Query that fail unpack()

This commit is contained in:
2023-09-20 22:26:35 +10:00
parent 612efda945
commit b7c1c97cf7
2 changed files with 14 additions and 4 deletions

View File

@@ -320,7 +320,7 @@ final class SocketClient {
}
} catch (\Exception $e) {
Log::error(sprintf('%s: - socket_recv Exception [%s]',self::LOGKEY,$e->getMessage()));
Log::error(sprintf('%s:! socket_recv Exception [%s]',self::LOGKEY,$e->getMessage()));
throw new SocketException($x=socket_last_error($this->connection),socket_strerror($x));
}