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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy