Re: Unable to get concurrent CFHTTPStreams...
Re: Unable to get concurrent CFHTTPStreams...
- Subject: Re: Unable to get concurrent CFHTTPStreams...
- From: Michael Ledford <email@hidden>
- Date: Mon, 23 Feb 2009 09:12:02 -0500
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