-
Notifications
You must be signed in to change notification settings - Fork 107
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
Conversation
src/JsSse.php
Outdated
ob_end_flush(); | ||
} | ||
flush(); |
There was a problem hiding this comment.
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()
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
we should fix it |
https://gist.github.com/connerbw/a2fa7712efe135d5854f4d32d67ca09f#file-eventemitter-php-L114