Re: [ServiceWorker] Backpressure on fetch integrated with Streams (#452)

Discussed `unusable flag` with @tyoshino.
We thought of two solutions: Both of them don't need an explicit flag.

1. Do not release the lock even when the stream is fully consumed or an read error occurs. From the outside, `body.closed` will never be resolved or rejected. This needs an additional lock acquiring mechanism in ReadableStream, because currently specified lock is auto-released when closed or errored.
1. Tee the readable stream, pass the created one to the method (such as new Request) and error the original one. Tee is [being specified](https://github.com/whatwg/streams/issues/271) now.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/452#issuecomment-71599938

Received on Tuesday, 27 January 2015 07:20:20 UTC