Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntermittent panic in fetch test (/fetch/stale-while-revalidate/fetch.html) #24399
Comments
jdm
commented
Oct 9, 2019
|
I suspect this may be a regression from #24203. |
|
For example, we could end up calling wait_for_cached_response with a None response if HttpCache::construct_response returns None. |
|
cc @gterzian |
|
Also we could end up calling wait_for_cached_response when revalidating and there will be a None response value. |
|
Ah yes, I added that assertion in #24318
Yes, and the assertion is nested within this block servo/components/net/http_loader.rs Line 1162 in 9c3e4a7 and logically if the done channel is set to something, the response should not be So if the cache constructs
Yes that's a good point, I think what is missing is setting servo/components/net/http_cache.rs Line 343 in 9c3e4a7 Although it's a strange case where the expired cached response is still receiving data, so the cache sets It might be clearer to set the servo/components/net/http_loader.rs Line 1109 in 9c3e4a7 |