Page MenuHomePhabricator

Don't call flush() when emitting responses
ClosedPublic

Authored by epriestley on Mar 21 2015, 7:30 PM.
Tags
None
Referenced Files
F15494688: D12127.diff
Sun, Apr 13, 1:20 AM
F15424561: D12127.id29168.diff
Sat, Mar 22, 11:01 PM
F15421768: D12127.id29153.diff
Sat, Mar 22, 2:06 AM
F15421577: D12127.id.diff
Sat, Mar 22, 12:59 AM
F15420624: D12127.id29153.diff
Fri, Mar 21, 3:29 PM
F15417047: D12127.diff
Thu, Mar 20, 2:59 PM
F15412423: D12127.id29153.diff
Wed, Mar 19, 12:56 PM
F15390500: D12127.id29153.diff
Mar 15 2025, 6:16 AM
Tokens
"Love" token, awarded by jlarouche."Like" token, awarded by FvD."Like" token, awarded by rbalik.

Details

Summary

Fixes T7620. I don't fully understand exactly what's going on here, but we don't actually need to call flush().

Test Plan
  • Put timing code around the echo.
  • Made a fake page that emitted a lot of data.
  • Saw the echo block proportionate to data size under curl --limit-rate ....
  • See T7620.
  • Downloaded a large file, got a reasonable progress bar and no obvious memory use issues.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't call flush() when emitting responses.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 23 2015, 3:50 PM
This revision was automatically updated to reflect the committed changes.