Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 9b64a1a

Browse files
authored
Merge pull request repejota#64 from byrnedo/hotfix/wrong-chunk-check
Fixed incorrect check of bytes left when reading
2 parents ac053f9 + 8a2b9f2 commit 9b64a1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function receive($len = null)
187187
$receivedBytes = 0;
188188
while ($receivedBytes < $len) {
189189
$bytesLeft = $len - $receivedBytes;
190-
if ( $bytesLeft < 1500 ) {
190+
if ( $bytesLeft < $this->chunkSize ) {
191191
$chunkSize = $bytesLeft;
192192
}
193193

0 commit comments

Comments
 (0)