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

Re: CFReadStreamRead blocking for https downloads


  • Subject: Re: CFReadStreamRead blocking for https downloads
  • From: Jeremy Wyld <email@hidden>
  • Date: Thu, 3 Mar 2005 17:58:56 -0800

File a bug with a url where I can reproduce. There is no such 16KB chunking and all calls are non-blocking.

jeremy

On Mar 3, 2005, at 5:33 PM, Jim Matthews wrote:

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:
40apple.com


This email sent to email@hidden

_______________________________________________ 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: 
 >CFReadStreamRead blocking for https downloads (From: Jim Matthews <email@hidden>)

  • Prev by Date: CFReadStreamRead blocking for https downloads
  • Next by Date: Abandonment of AppleTalk?
  • Previous by thread: CFReadStreamRead blocking for https downloads
  • Next by thread: Abandonment of AppleTalk?
  • Index(es):
    • Date
    • Thread