• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURLConnection leaves growing cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLConnection leaves growing cache


  • Subject: NSURLConnection leaves growing cache
  • From: Nicolas Berloquin <email@hidden>
  • Date: Thu, 12 May 2005 17:31:37 +0200

Hello !

I use NSURLConnection's connectionWithRequest: to do some very simple async http requests.
I've just noticed that this leaves a growing list of cache files in ~/ Library/Cache/myappname/ which
hold the request, the connexion info and the reply.


I don't understand why this happens, since I define my request this way :
trackerRequestNSURL = [[NSMutableURLRequest requestWithURL:tmpTrackerRequest cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval: (NSTimeInterval)120] retain];


I then create the connexion :
currentTrackerUrlConnexion = [[NSURLConnection connectionWithRequest:trackerRequestNSURL delegate:self] retain];
[trackerRequestNSURL release];



and then I release the connexion in my didFailWithError: and connectionDidFinishLoading: delegate methods :
[currentTrackerUrlConnexion release];


Is there anything more that I should do ? Why is the cache created in the first place ?


thanks !

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSURLConnection leaves growing cache
      • From: Nicolas Berloquin <email@hidden>
  • Prev by Date: Re: Mac OS X Server Tiger + iChat - local UDP + 5678
  • Next by Date: Re: NSURLConnection leaves growing cache
  • Previous by thread: Re: Mac OS X Server Tiger + iChat - local UDP + 5678
  • Next by thread: Re: NSURLConnection leaves growing cache
  • Index(es):
    • Date
    • Thread