• 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: Authentication isn't reentrant?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authentication isn't reentrant?


  • Subject: Re: Authentication isn't reentrant?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 21 Apr 2015 07:09:01 -0700


On Apr 21, 2015, at 1:56 AM, Daryle Walker <email@hidden> wrote:

Then I remembered that I set the NSURLSession to use the main thread (set its queue to [NSOperationQueue mainQueue]). Could that serialization cause a challenge to sometimes time out?

I don’t think so. It would require the main queue to be blocked for something on the order of minutes.

If you leave the session queue as NIL, is the queue automatically created instead one that allows multiple operations at once? 

The docs say it "creates a *serial* NSOperationQueue object on which to perform all delegate method calls”, so the answer is no. But if your delegate is also being called from the main thread, you could have some thread-safety problems anyway...

—Jens
 _______________________________________________
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: 
 >Authentication isn't reentrant? (From: Daryle Walker <email@hidden>)

  • Prev by Date: Authentication isn't reentrant?
  • Next by Date: Re: Setting the NSURLDownload user agent
  • Previous by thread: Authentication isn't reentrant?
  • Next by thread: Profiling network I/O with Instruments?
  • Index(es):
    • Date
    • Thread