• 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
NSURL and lingering FTP processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURL and lingering FTP processes


  • Subject: NSURL and lingering FTP processes
  • From: Joe Lester <email@hidden>
  • Date: Thu, 25 Mar 2004 11:54:24 -0500

My app is downloading remote files from an FTP server like so (typed in Mail)...

NSData *data = [url resourceDataUsingCache:NO];

This has been working well for me. The problem is that the ftp processes are staying open on the ftp server until they finally time out after 900 seconds. Here's what it looks like in ftp.log...

Mar 25 10:54:14 OfficeLink-Server ftpd[9710]: User joe timed out after 900 seconds

Is there anything I'm failing to do on the Cocoa API side that could be causing the FTP process to remain open? Or, to ask the question in reverse... Is there anything I can do, at the Cocoa API level, to make the FTP process gracefully shut down immediately after I'm done messaging resourceDataUsingCache?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSURL and lingering FTP processes
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Finder "like" NSView,
  • Next by Date: Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?
  • Previous by thread: Re: Copy File/ Shell Script Phase
  • Next by thread: Re: NSURL and lingering FTP processes
  • Index(es):
    • Date
    • Thread