This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27781 - fetch: consider providing a "slow read" option that provides back pressure to network
Summary: fetch: consider providing a "slow read" option that provides back pressure to...
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Fetch (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+fetchspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-07 16:36 UTC by Ben Kelly
Modified: 2015-02-19 09:33 UTC (History)
2 users (show)

See Also:


Attachments

Description Ben Kelly 2015-01-07 16:36:04 UTC
In XHR the loaded resource is immediately read into a memory buffer.  Given that fetch will support streams, we have the opportunity to provide some amount of back pressure to the network.  This would reduce the memory footprint in the case where content is reading the Response body very slowly.

Consider providing an option to signal that the Response will be read slowly.  This could be a boolean flag or perhaps a buffer size.
Comment 2 Anne 2015-02-19 09:33:26 UTC
It seems this will be handled as part of the streams integration per that GitHub issue.