• 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: crash with cfftpstream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash with cfftpstream


  • Subject: Re: crash with cfftpstream
  • From: Jeremy Wyld <email@hidden>
  • Date: Fri, 24 Sep 2004 09:21:09 -0700

You may wish to double check yourself on kCFStreamFTPProxyUser and kCFStreamFTPProxyPassword.  Make sure you are actually using kCFStreamPropertyFTPProxyUser and kCFStreamPropertyFTPProxyPassword.  Make sure they are set as properties on the stream.

I'd be very surprised if the following did not work.

CFStringRef user = CFStringCreateWithCString(kCFAllocatorDefault, "me", kCFStringEncodingASCII);
CFStringRef pass = CFStringCreateWithCString(kCFAllocatorDefault, "bad", kCFStringEncodingASCII);
CFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyUser, user);
CCFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyPassword, pass);
CFRelease(user);
CFRelease(pass);


The proxy dictionary problem was filed as a bug and has been fixed in Tiger.  Continuing to use the work around will not be harmful though.

jeremy


On Sep 23, 2004, at 6:08 PM, Frederick Cheung wrote:


On 24 Sep 2004, at 02:49, Jeremy Wyld wrote:

It's a bug in CFFTPStream.  I'd suggest not releasing the proxy dictionary until your release the stream.  See if that fixes it for you.

That seems to have done the trick, thanks.
Is it also necessary not to release the values set for  kCFStreamFTPProxyUser and kCFStreamFTPProxyPassword (I don't have a suitably setup proxy server handy currently)?


Fred

You may wish to double check yourself on kCFStreamFTPProxyUser and kCFStreamFTPProxyPassword.  Make sure you are actually using kCFStreamPropertyFTPProxyUser and kCFStreamPropertyFTPProxyPassword.  Make sure they are set as properties on the stream.

I'd be very surprised if the following did not work.

CFStringRef user = CFStringCreateWithCString(kCFAllocatorDefault, "me", kCFStringEncodingASCII);
CFStringRef pass = CFStringCreateWithCString(kCFAllocatorDefault, "bad", kCFStringEncodingASCII);
CFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyUser, user);
CCFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyPassword, pass);
CFRelease(user);
CFRelease(pass);


The proxy dictionary problem was filed as a bug and has been fixed in Tiger.  Continuing to use the work around will not be harmful though.

jeremy


On Sep 23, 2004, at 6:08 PM, Frederick Cheung wrote:


On 24 Sep 2004, at 02:49, Jeremy Wyld wrote:

It's a bug in CFFTPStream.  I'd suggest not releasing the proxy dictionary until your release the stream.  See if that fixes it for you.

That seems to have done the trick, thanks.
Is it also necessary not to release the values set for  kCFStreamFTPProxyUser and kCFStreamFTPProxyPassword (I don't have a suitably setup proxy server handy currently)?


Fred



_______________________________________________
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: 
 >crash with cfftpstream (From: Frederick Cheung <email@hidden>)
 >Re: crash with cfftpstream (From: Jeremy Wyld <email@hidden>)
 >Re: crash with cfftpstream (From: Frederick Cheung <email@hidden>)

  • Prev by Date: how detect easily network type (lan/modem/proxy) on mac os x?
  • Next by Date: Lost UDP packets
  • Previous by thread: Re: crash with cfftpstream
  • Next by thread: how detect easily network type (lan/modem/proxy) on mac os x?
  • Index(es):
    • Date
    • Thread