• 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: 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
References: 
 >Unable to get concurrent CFHTTPStreams... (From: Michael Ledford <email@hidden>)
 >Re: Unable to get concurrent CFHTTPStreams... (From: Quinn <email@hidden>)
 >Re: Unable to get concurrent CFHTTPStreams... (From: Michael Ledford <email@hidden>)

  • Prev by Date: Re: Looking for CFSocket UPD setup and data-xfer samples/tutorials
  • 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: AFP debugging in console in response to PBGetVolMountInfo()
  • Index(es):
    • Date
    • Thread