зеркало из https://github.com/mozilla/pjs.git
Partial fix for bug #24711 (r=valeski). If a channel which had been deferred because no socket transports were available resumed and found a valid cache entry it would stall (never finish). A notable example of this was http://www.abcnews.com
This commit is contained in:
Родитель
b20c0204e0
Коммит
46dbbfbf2b
|
@ -1135,8 +1135,15 @@ nsHTTPChannel::Open(void)
|
|||
|
||||
// If the data in the cache is usable, i.e it hasn't expired, then
|
||||
// there's no need to request a socket transport.
|
||||
if (mCachedContentIsValid)
|
||||
if (mCachedContentIsValid) {
|
||||
// The channel is being restarted by the HTTP protocol handler
|
||||
// and the cache data is usable, so start pumping the data from
|
||||
// the cache...
|
||||
if (!mOpenObserver) {
|
||||
rv = ReadFromCache(0, -1);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
rv = mHandler->RequestTransport(mURI, this,
|
||||
|
|
Загрузка…
Ссылка в новой задаче