• 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: Spoon-feeding NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spoon-feeding NSURLConnection


  • Subject: Re: Spoon-feeding NSURLConnection
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Thu, 28 Jun 2012 09:43:41 +0100

On 28 Jun 2012, at 05:55, Jens Alfke wrote:

> I don't think CFNetwork cares which threads/runloops requests come from (except that it will post the delegate messages on those corresponding runloops.) All of the socket handling and I/O happens on a dedicated CFNetwork thread anyway.

NSURLConnection's connection cache is definitely per thread.  However, I'm not sure if that's looked at before control transfers over to the loader thread or not.  It's definitely worth a shot IMO.

If that doesn't pan out my standard hackish workaround for problems like this is to change the URL from "foo.bar.com" to "foo.bar.com." (note the trailing dot).  These resolve to the same thing, but they result in different connection cache keys.  So you could use the trailing dot version for long-running requests and the normal version for normal requests.  Yergh!

Regardless of what happens on the workaround front, please make sure you file a bug about this.

<http://developer.apple.com/bugreporter/>

Share and Enjoy
--
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

References: 
 >Spoon-feeding NSURLConnection (From: Jens Alfke <email@hidden>)
 >Re: Spoon-feeding NSURLConnection (From: Steve Sisak <email@hidden>)
 >Re: Spoon-feeding NSURLConnection (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Spoon-feeding NSURLConnection
  • Next by Date: Re: Spoon-feeding NSURLConnection
  • Previous by thread: Re: Spoon-feeding NSURLConnection
  • Next by thread: Re: Spoon-feeding NSURLConnection
  • Index(es):
    • Date
    • Thread