Skip to content

Commit bfc0f35

Browse files
authored
Merge pull request repejota#72 from dfeyer/bugfix-truncate
BUGFIX: Never truncate the message on receive
2 parents bcded22 + a0bc44b commit bfc0f35

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)