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 4173007 commit 59746fbCopy full SHA for 59746fb
src/connection/StreamSocket.php
@@ -75,7 +75,7 @@ public function write(string $buffer): void
75
while (0 < $size) {
76
$sent = fwrite($this->stream, $buffer);
77
78
- if ($sent === false) {
+ if ($sent === false || $sent === 0) {
79
if (microtime(true) - $time >= $this->timeout)
80
throw new ConnectionTimeoutException('Connection timeout reached after ' . $this->timeout . ' seconds.');
81
else
0 commit comments