Re: Authentication isn't reentrant?
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