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:
rpotts%netscape.com 2000-02-19 00:58:22 +00:00
Родитель b20c0204e0
Коммит 46dbbfbf2b
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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,