Open Bug 1814731 Opened 2 years ago Updated 2 years ago

Suspended channel blocks second channel to same URL waiting for cache entry

Categories

(Core :: Networking: Cache, defect, P1)

defect

Tracking

()

People

(Reporter: valentin, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files)

Kershaw's investigation in bug 1807262 seems accurate. I am fairly sure this is causing bug 1813132 as well.
The problem is that we're creating a channel (the early hint channel) then suspending it. Any later requests for the same URL will be waiting for the previous load to complete and write into the cache entry, but that channel is suspended, so they stall forever.
I've already confirmed the issue with a unit test, now I'm working on a fix.

I think the best approach here would be to doom the cache entry when suspending. I will put this behind a pref in case it causes any regressions.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: