8000 perf: ensure timely flush stream buffers · symfony/symfony@8c8a75b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c8a75b

Browse files
authored
perf: ensure timely flush stream buffers
Resolve OOM problem while handle a large streamed response
1 parent d444f85 commit 8c8a75b

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)
0