]> BookStack Code Mirror - bookstack/commit
Fixed streamed outputs in more extreme scenarios
authorDan Brown <redacted>
Sat, 2 Apr 2022 17:42:15 +0000 (18:42 +0100)
committerDan Brown <redacted>
Sat, 2 Apr 2022 17:42:15 +0000 (18:42 +0100)
commit6749faa89a9faa6f21ba173c1736f6bbba72a8f8
treefdca1ef6b56fe9ac2caeaa6a07f875a7c73bc815
parent82e8b1577ec0c7b136da5eed9c89d4790714814c
Fixed streamed outputs in more extreme scenarios

Fixes hitting memory limits where downloaded file sizes are much greater
than memory limit. Stopping and flushing output buffer seemed to stop
limits causing issues when fpassthru is used.
Tested with 24M memory limit and 734M file
app/Http/Controllers/Controller.php