NSURL and lingering FTP processes
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.