Skip to content

[HttpFoundation] Fix file streaming after connection aborted #50266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2023
Merged

[HttpFoundation] Fix file streaming after connection aborted #50266

merged 1 commit into from
May 12, 2023

Conversation

rlshukhov
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets no
License MIT
Doc PR no

After connection aborted HttpFoundation/BinaryFileResponse.php will stream file until it's end.

This fix add connection aborted checks.

@carsonbot carsonbot added this to the 5.4 milestone May 8, 2023
@carsonbot carsonbot changed the title Fix file streaming after connection aborted [HttpFoundation] Fix file streaming after connection aborted May 12, 2023
@nicolas-grekas
Copy link
Member

Any idea why the check on L351 isn't enough?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!

@nicolas-grekas
Copy link
Member

Thank you @rlshukhov.

@nicolas-grekas nicolas-grekas merged commit 8048ab5 into symfony:5.4 May 12, 2023
@fabpot fabpot mentioned this pull request May 13, 2023
This was referenced May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants