Re: [whatwg/fetch] aborting locked request body (#1286)

We lock the stream in the "incremently read" algorithm which is called from "To transmit request’s body" algorithm. My concern is whether there's a window between that and checking the stream is not locked in the Request constructor during which someone else could lock the stream. For correctness, we need to ensure that we have the stream locked the whole time once we've taken ownership of it.

"incrementally read" has a note that getting a reader will not throw an exception but if JavaScript can run between creating the Request and calling "incrementally read" then that note would be incorrect.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1286#issuecomment-1261797088

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1286/1261797088@github.com>

Received on Thursday, 29 September 2022 05:48:10 UTC