Skip to content

Commit c437f39

Browse files
rlshukhovnicolas-grekas
authored andcommitted
[HttpFoundation] Fix file streaming after connection aborted
1 parent af9fbb3 commit c437f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BinaryFileResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function sendContent()
349349
while ('' !== $data) {
350350
$read = fwrite($out, $data);
351351
if (false === $read || connection_aborted()) {
352-
break;
352+
break 2;
353353
}
354354
if (0 < $length) {
355355
$length -= $read;

0 commit comments

Comments
 (0)