Closed vsychov closed 4 years ago
This issue may be fixed by #10, but this fix looks not well.
Another way - disallow usage of StreamedResponse, and create some alternative in this bundle.
Hi!
Thank you for the report and sorry for the late response :)
symfony/psr-http-message-bridge should handle streamed response : https://github.com/symfony/psr-http-message-bridge/blob/master/Factory/PsrHttpFactory.php#L133
After investigations, it turns out that Symfony has a StreamedResponseListener that sends the response before the Kernel::handle()
is done...
Then when symfony/psr-http-message-bridge tries to convert it into a PSR response, the callback is not called again.
I wrote another PR to fix this, if you want to review it : https://github.com/Baldinof/roadrunner-bundle/pull/11
KernelHandler
.Thanks, @Baldinof , you PR looks much better, can you merge it please?
Done, and released with 1.2.2 :)
Hi,
I found that StreamedResponse not work now, example code for reproduce problem: