You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But for general streams AFAICT both Firefox and Chrome do not close nor error the stream, and just let the read requests stall forever when trying to read streams transferred from terminated workers.
But should worker termination ping the streams what's happening? This will expose worker GC, but Web Locks already exposes that information.
While that sounds reasonable, wouldn't it be a footgun for other Stream-using specs when the core Streams spec doesn't cover it? File System and WebTransport may also need to deal with this themselves for example.
(Depends on whether we should do this at all, though.)
I found that Firefox currently explicitly closes
new Response(...).body
when the owning worker closes: https://searchfox.org/mozilla-central/rev/9de332d5c8faac58dc1232b8a6383ce6cb1400f4/dom/base/BodyStream.cpp#169But for general streams AFAICT both Firefox and Chrome do not close nor error the stream, and just let the read requests stall forever when trying to read streams transferred from terminated workers.
But should worker termination ping the streams what's happening? This will expose worker GC, but Web Locks already exposes that information.
cc @asutherland
The text was updated successfully, but these errors were encountered: