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 7afa7d7 commit 8bd9a8bCopy full SHA for 8bd9a8b
src/protocol/AProtocol.php
@@ -71,7 +71,7 @@ protected function read(?int &$signature)
71
$msg = '';
72
while (true) {
73
$header = $this->connection->read(2);
74
- if (ord($header[0]) == 0x00 && ord($header[1]) == 0x00)
+ if ($msg !== '' && ord($header[0]) == 0x00 && ord($header[1]) == 0x00)
75
break;
76
$length = unpack('n', $header)[1] ?? 0;
77
$msg .= $this->connection->read($length);
0 commit comments