Skip to content
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

Fix ob_end_flush() in JsSse init #2175

Merged
merged 3 commits into from
Mar 24, 2024
Merged

Fix ob_end_flush() in JsSse init #2175

merged 3 commits into from
Mar 24, 2024

Conversation

Vladzimir
Copy link
Contributor

src/JsSse.php Outdated
ob_end_flush();
}
flush();
Copy link
Member

@mvorisek mvorisek Feb 24, 2024

Choose a reason for hiding this comment

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

please explain why flush() is helpful

also note there is self::flush()

Copy link
Contributor Author

@Vladzimir Vladzimir Feb 24, 2024

Choose a reason for hiding this comment

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

please explain why flush() is helpful

I don't know. The code is taken from the example I gave. If you think it is not needed, delete it.

Copy link
Member

Choose a reason for hiding this comment

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

This was the cause of CI failure, as it prevented HTTP code to be set later.

Does this PR now fixes your issue with output buffering together with #2175 (comment) framework you use?

@mvorisek mvorisek changed the title Fix buffering Fix ob_end_flush() in JsSse init Feb 24, 2024
@mvorisek mvorisek marked this pull request as draft February 24, 2024 09:50
@Vladzimir Vladzimir requested a review from mvorisek February 24, 2024 10:34
@mvorisek mvorisek removed their request for review February 24, 2024 10:35
@atk4 atk4 deleted a comment from mvorisek Feb 26, 2024
@Vladzimir Vladzimir closed this Mar 8, 2024
@mvorisek
Copy link
Member

mvorisek commented Mar 8, 2024

we should fix it

@mvorisek mvorisek marked this pull request as ready for review March 22, 2024 13:32
@mvorisek mvorisek merged commit 890a347 into atk4:develop Mar 24, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants