Intermittent NSURLCredential lookup failure on iOS
Intermittent NSURLCredential lookup failure on iOS
- Subject: Intermittent NSURLCredential lookup failure on iOS
- From: Jens Alfke <email@hidden>
- Date: Fri, 05 Apr 2013 10:38:46 -0700
A couple of users of my iOS library (TouchDB) are reporting transient HTTP auth problems, where after a long series of NSURLConnections to a remote server using Basic auth, one of the connections will suddenly fail with a 401 error, even though nothing related to credentials has changed on the client or server.
I haven’t been able to reproduce it myself, but from looking at detailed logs what seems to happen is that the credential lookup intermittently fails — the NSURLCredentialStore does return an NSURLCredential, but its .password property is nil. This even though a prior lookup of the same credential less than a second ago succeeded.
The credential’s been stored persistently, i.e. in the app’s keychain. Is there any known issue in iOS where URL credential lookup might intermittently fail?
(I’m posting a copy of this message to apple-cdsa too, since it seems equally relevant to both lists.)
—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