Closed
Bug 260569
Opened 21 years ago
Closed 14 years ago
http channel's cache entry (nsICachingChannel::cacheToken) unavailable after onstoprequest
Categories
(Core :: Networking: HTTP, defect)
Core
Networking: HTTP
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: Biesinger, Unassigned)
Details
After onstoprequest has fired, the http channel releases mCacheEntry. this would
probably be mostly OK, unfortunately this means that a synchronous open() will
(in some cases) not allow accessing the cache entry at all.
<darin> i think it may be ok to call mCacheEntry->MarkValid in place of
CloseCacheEntry in HTTP::OnStopRequest
| Reporter | ||
Updated•14 years ago
|
Assignee: cbiesinger → nobody
Comment 2•14 years ago
|
||
Given that we call CloseCacheEntry in OnStopRequest, and GetCacheToken QIs mCacheEntry, the answer is yes.
Comment 3•14 years ago
|
||
Given that we've gone almost a decade with this "bug," and fixing it is likely to interfere with cache performance work, perhaps we should WONTFIX it or look at it after the cache performance work is done, to see if it will even be feasible to fix?
AFAICT, this would most likely affect XHR, but XHR has workarounds for it already.
Comment 4•14 years ago
|
||
IIRC we can't fix this without also fixing the fact that other cache readers of the same entry currently get blocked until we release the entry. That's presumably why we take care to release it in OnStopRequest.
I don't see a specific use request for this ATM, so...
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•