CFReadStreamRead blocking for https downloads
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