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)

defect
Not set
normal

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
Assignee: cbiesinger → nobody
Anyone know if this is still an issue?
Given that we call CloseCacheEntry in OnStopRequest, and GetCacheToken QIs mCacheEntry, the answer is yes.
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.
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.