From e663ddf3a0e31e65db21227cc7860bc52cc9e3a7 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Wed, 30 Jan 2002 22:44:44 +0000 Subject: [PATCH] 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 --- mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp b/mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp index 4f8c62e3bd0..2c944a0fb2f 100644 --- a/mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp +++ b/mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp @@ -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();