Skip to content

Commit

Permalink
perf: ensure timely flush stream buffers
Browse files Browse the repository at this point in the history
Resolve OOM problem while handle a large streamed response
  • Loading branch information
cidosx committed Nov 22, 2022
1 parent d444f85 commit 8c8a75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Factory/PsrHttpFactory.php
Expand Up @@ -142,7 +142,7 @@ public function createResponse(Response $symfonyResponse)
$stream->write($buffer);

return '';
});
}, 1);

$symfonyResponse->sendContent();
ob_end_clean();
Expand Down

0 comments on commit 8c8a75b

Please sign in to comment.