Skip to content

Commit bb7900d

Browse files
author
wl
committed
update socket write method
1 parent b655d26 commit bb7900d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection/Socket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function write(string $buffer)
7474
if (Bolt::$debug)
7575
$this->printHex($buffer);
7676

77-
while ($sent < $size) {
77+
while (0 < $size) {
7878
$sent = socket_write($this->socket, $buffer, $size);
7979
if ($sent === false) {
8080
$code = socket_last_error($this->socket);

0 commit comments

Comments
 (0)