Re: CFReadStreamOpen 550 error
Re: CFReadStreamOpen 550 error
- Subject: Re: CFReadStreamOpen 550 error
- From: Philip Aker <email@hidden>
- Date: Sat, 01 Mar 2008 07:52:52 -0800
On 08-02-29, at 22:38, Mike wrote:
I have a very slow FTP server I am trying to download a file from.
Logging in in passive mode can take anywhere between 30 seconds to 2
minutes, but login never fails given enough time.
When I open a CFReadStreamRef for downloading a file via
CFReadStreamCreateWithFTPURL and then loop checking
CFReadStreamGetStatus immediately after opening it, it first returns
CFStreamStatusOpening and a few seconds later fails with
kCFStreamStatusError, which I believe is because the FTP server
doesn't respond immediately.
[...]
Is there a way to set the timeout on the stream's opening so that it
will wait longer for really slow servers? I've verified everything
else is correct: user name, password, path to file, the stream gets
created and opens properly.
I started the CFFTPSample code from Apple. It sets up things a little
differently than the code you posted (CFReadStreamSetClient() in
particular) and it works very well for me. I can't say that the 2
servers I've tried it on are especially slow though.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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