We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd9a8b commit 3e59c65Copy full SHA for 3e59c65
src/connection/Socket.php
@@ -153,7 +153,8 @@ private function throwConnectException(): void
153
if ($timediff >= $this->timeout) {
154
throw ConnectionTimeoutException::createFromTimeout($this->timeout);
155
}
156
+ } else if ($code !== 0) {
157
+ throw new ConnectException(socket_strerror($code), $code);
158
- throw new ConnectException(socket_strerror($code), $code);
159
160
0 commit comments