• 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
CFReadStreamRead blocking for https downloads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFReadStreamRead blocking for https downloads


  • Subject: CFReadStreamRead blocking for https downloads
  • From: Jim Matthews <email@hidden>
  • Date: Thu, 3 Mar 2005 20:33:31 -0500

I've run across a problem using CFReadStreamRead to read data from an https download, and I was able to reproduce it with Apple's URLLoad sample app on 10.3.8. On secure connections CFReadStreamRead appears to process data in 16KB chunks. So if you call CFReadStreamRead (in response to a kCFStreamEventHasBytesAvailable message) you block until all of the current 16KB chunk has been received or the download is complete. On a dial-up connection that can translate to blocking for a number of seconds, long enough for the spinning rainbow cursor to appear. For example, Spin Control reports a 31 second hang when I download a 100KB file with URLLoad using CFStream over a dial-up link (there's no hang when URLLoad uses NSURL or URLAccess, the deprecated APIs).

Is this a known issue (and if so is there a workaround?), or should I file a bug?

Thanks,
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com
_______________________________________________
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


  • Follow-Ups:
    • Re: CFReadStreamRead blocking for https downloads
      • From: Jeremy Wyld <email@hidden>
  • Prev by Date: Significance of errSSLInternal?
  • Next by Date: Re: CFReadStreamRead blocking for https downloads
  • Previous by thread: Significance of errSSLInternal?
  • Next by thread: Re: CFReadStreamRead blocking for https downloads
  • Index(es):
    • Date
    • Thread