Skip to content

Commit 4617ac3

Browse files
committed
bug #109 perf: ensure timely flush stream buffers (cidosx)
This PR was merged into the 2.1-dev branch. Discussion ---------- perf: ensure timely flush stream buffers Resolve OOM problem while handle a large streamed response Commits ------- 8c8a75b perf: ensure timely flush stream buffers
2 parents d444f85 + 8c8a75b commit 4617ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Factory/PsrHttpFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function createResponse(Response $symfonyResponse)
142142
$stream->write($buffer);
143143

144144
return '';
145-
});
145+
}, 1);
146146

147147
$symfonyResponse->sendContent();
148148
ob_end_clean();

0 commit comments

Comments
 (0)