Re: Overlapping requests on multiple persistent connections?
Re: Overlapping requests on multiple persistent connections?
- Subject: Re: Overlapping requests on multiple persistent connections?
- From: Quinn <email@hidden>
- Date: Mon, 1 Dec 2008 13:12:18 +0000
At 13:41 -0800 28/11/08, Jens Alfke wrote:
PS: Hey, Quinn - should that example be deprecated or something? It
still serves a purpose in case someone absolutely has to implement
their own HTTP support for some reason, but 99% of developers
shouldn't be using it. Instead there should be some examples using
NSURLConnection (I couldn't find any, either there or in
/D/E/Foundation.)
Using CFHTTPStream is hardly using your own HTTP support; it takes
care of a /lot/ of the really complex HTTP stuff for you. Then
again, a read me that points folks to a various discussions of how to
choose the correct networking API would be good. I'm going to leave
you to file this one yourself!
<http://developer.apple.com/bugreporter/>
At 8:30 -0800 29/11/08, Jim Luther wrote:
The trick is to make each CFReadStream unique so that CFNetwork's
connection cache won't try to queue up your new request on a
persistent connection it already has open. This is pretty easy --
just create a unique CFString (or number) value for each persistent
connection you want and then set that value as a property on the
CFReadStream after you create it but before you open it.
That's pretty nutso! I've filed <rdar://problem/6408090> to get it documented.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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