Skip to content

Commit

Permalink
fix: bigger chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Dec 19, 2024
1 parent 3ec432d commit 5633722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMS/helpers/src/File/TempFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function loadFromStream(StreamInterface $stream): self
}

while (!$stream->eof()) {
if (false === \fwrite($handle, $stream->read(8192))) {
if (false === \fwrite($handle, $stream->read(File::DEFAULT_CHUNK_SIZE))) {
throw new \RuntimeException(\sprintf('Can\'t write in temporary file %s', $this->path));
}
}
Expand Down

0 comments on commit 5633722

Please sign in to comment.