Re: Unable to get concurrent CFHTTPStreams...
Re: Unable to get concurrent CFHTTPStreams...
- Subject: Re: Unable to get concurrent CFHTTPStreams...
- From: Mark Pauley <email@hidden>
- Date: Mon, 23 Feb 2009 11:37:05 -0800
Anything up to 32kb would be a good buffer size.
I would just pick what you think is a good 4k multiple in order to get
use as close to full pages as possible.
On Feb 23, 2009, at 6:12 AM, Michael Ledford wrote:
On Feb 23, 2009, at 7:36 AM, Quinn wrote:
Just to double check, can you call CFReadStreamCopyProperty with
kCFStreamPropertyHTTPAttemptPersistentConnection to verify that
persistent connections are actually off.
Quinn,
I have placed...
CFBooleanRef persistent =
CFReadStreamCopyProperty(httpOperationReadStream,
kCFStreamPropertyHTTPAttemptPersistentConnection);
...in different places around my code and it only returns 0x0
(NULL). I even added...
CFReadStreamSetProperty(httpOperationReadStream,
kCFStreamPropertyHTTPAttemptPersistentConnection, kCFBooleanTrue);
...before the CFReadStreamCopyProperty() and it still returned NULL.
I'm guessing that the ability to read out this value isn't supported?
So I've been exercising the download portion of this code. So I
decided to look closer over at the upload portion and sure enough I
have multiple transfers in flight. So I took a closer look at my
download code and it turns out my CFReadStreamRead buffer used
during kCFStreamEventHasBytesAvailable for writing to disk was *way*
too small. So it appears that in it's effort to get me the data it
starved the other connections.
In light of this is there a good rule of thumb for how large input
buffers for today's networking should be?
Thanks,
Michael
_______________________________________________
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
_Mark
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