Skip to content

Commit a0bc44b

Browse files
committed
BUGFIX: Never truncate the message on receive
This fix a regression introduced by 851d881
1 parent bcded22 commit a0bc44b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Nats/Connection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,6 @@ private function receive($len = null)
174174
$line .= fread($this->streamSocket, $chunkSize);
175175
$receivedBytes += $chunkSize;
176176
}
177-
if (strlen($line) > 2) {
178-
$line = substr($line, 0, -2);
179-
}
180177
} else {
181178
$line = fgets($this->streamSocket);
182179
}

0 commit comments

Comments
 (0)