• 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: Unable to get concurrent CFHTTPStreams...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unable to get concurrent CFHTTPStreams...
      • From: Mark Pauley <email@hidden>
References: 
 >Unable to get concurrent CFHTTPStreams... (From: Michael Ledford <email@hidden>)
 >Re: Unable to get concurrent CFHTTPStreams... (From: Quinn <email@hidden>)

  • Prev by Date: Re: Unable to get concurrent CFHTTPStreams...
  • Next by Date: Re: Looking for CFSocket UPD setup and data-xfer samples/tutorials
  • Previous by thread: Re: Unable to get concurrent CFHTTPStreams...
  • Next by thread: Re: Unable to get concurrent CFHTTPStreams...
  • Index(es):
    • Date
    • Thread