• 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
Re: Problem w. FTP port 21
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem w. FTP port 21 (From: Eigil Krogh Sørensen <email@hidden>)

  • Prev by Date: Problem w. FTP port 21
  • Next by Date: connectionDidFinishLoading is not invoked after 1 minute
  • Previous by thread: Problem w. FTP port 21
  • Next by thread: connectionDidFinishLoading is not invoked after 1 minute
  • Index(es):
    • Date
    • Thread