Skip to content

Commit adb9393

Browse files
rlshukhovnicolas-grekas
authored andcommitted
[HttpFoundation] Fix file streaming after connection aborted
1 parent 037f844 commit adb9393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/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)