DescriptionDeactivate cache entry when caching is stopped.
The method HttpCache::Transaction::StopCaching is called when resource download begins. The method deactivates http caching mechanism for the downloaded resource (see mode_ = NONE;).
However, the deactivation is not complete: the resource is still kept in http cache structures.
This causes all requests to this resource (e.g. second download request) to fail, as the resource is still registered as active cache entry (and the request just waits for the cache element to become available, which will never happen because once download finishes, the cache entry is removed).
This fix makes the cache entry inactive, thus making another request for this resource possible.
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|