Bug 122307 - FTP doesn't work if memory and disck cache sizes are 0
r=dougt, sr=darin git-svn-id: svn://10.0.0.236/trunk@113242 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -324,7 +324,14 @@ nsFTPChannel::AsyncOpen(nsIStreamListener *listener, nsISupports *ctxt)
|
||||
nsCAutoString cacheKey;
|
||||
GenerateCacheKey(cacheKey);
|
||||
|
||||
return mCacheSession->AsyncOpenCacheEntry(cacheKey.get(), accessRequested, this);
|
||||
rv = mCacheSession->AsyncOpenCacheEntry(cacheKey.get(),
|
||||
accessRequested,
|
||||
this);
|
||||
if (NS_SUCCEEDED(rv)) return rv;
|
||||
|
||||
// If we failed to use the cache, try without
|
||||
PR_LOG(gFTPLog, PR_LOG_DEBUG,
|
||||
("Opening cache entry failed [rv=%x]", rv));
|
||||
}
|
||||
|
||||
return SetupState();
|
||||
|
||||
Reference in New Issue
Block a user