Re: Problem w. FTP port 21
Re: Problem w. FTP port 21
- Subject: Re: Problem w. FTP port 21
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 26 Jan 2011 09:43:28 +0000
On 25 Jan 2011, at 16:01, Eigil Krogh Sørensen wrote:
> That the TCP port 21 is kept open prevents other computers to establish FTP connections to the remote computer, which is “not good”.
CFFTPStream tends to keep connections alive in the hope that subsequent FTP commands can reuse them. In general this is a good idea because it improves performance and most FTP servers support multiple simultaneously FTP connections. My guess is that you're talking to some limited device that only supports a single FTP connection. In that case you should disable persistent connections by setting the kCFStreamPropertyFTPAttemptPersistentConnection to kCFBooleanFalse. At that point the life of the underlying FTP connection will be tied to the life of the CFFTPStream.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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