Page MenuHomePhabricator

Prepare file responses for streaming chunks
ClosedPublic

Authored by epriestley on Mar 13 2015, 8:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 22, 3:58 AM
Unknown Object (File)
Fri, Jun 20, 10:56 PM
Unknown Object (File)
Jun 16 2025, 4:39 AM
Unknown Object (File)
May 9 2025, 3:30 PM
Unknown Object (File)
Apr 24 2025, 8:56 AM
Unknown Object (File)
Mar 31 2025, 10:28 PM
Unknown Object (File)
Mar 29 2025, 7:59 PM
Unknown Object (File)
Mar 24 2025, 4:27 PM

Details

Summary

Ref T7149. This still buffers the whole file, but is reaaaaal close to not doing that.

Allow Responses to be streamed, and rewrite the range stuff in the FileResponse so it does not rely on having the entire content available.

Test Plan
  • Artificially slowed down downloads, suspended/resumed them (works in chrome, not so much in Safari/Firefox?)
  • Played sounds in Safari/Chrome.
  • Viewed a bunch of pages and files in every browser.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Prepare file responses for streaming chunks.
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 13 2015, 10:35 PM
This revision was automatically updated to reflect the committed changes.