Page MenuHomePhabricator

Don't call flush() when emitting responses
ClosedPublic

Authored by epriestley on Mar 21 2015, 7:30 PM.
Tags
None
Referenced Files
F18860760: D12127.id29168.diff
Sun, Nov 2, 12:38 PM
F18823293: D12127.id29153.diff
Oct 23 2025, 11:13 AM
F18812374: D12127.diff
Oct 20 2025, 8:52 AM
F18770918: D12127.id.diff
Oct 8 2025, 4:10 PM
F18744235: D12127.id29153.diff
Oct 3 2025, 2:20 AM
F18705042: D12127.diff
Sep 28 2025, 9:53 AM
F18542520: D12127.diff
Sep 7 2025, 10:38 PM
F18505215: D12127.id.diff
Sep 5 2025, 12:29 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.