Reset contexts of NSURLConnection
Reset contexts of NSURLConnection
- Subject: Reset contexts of NSURLConnection
- From: Andrey <email@hidden>
- Date: Fri, 22 Apr 2011 09:01:50 -0700
Is there way to reliably reset SSL persistent context used by NSURLConnection class?
It keeps persistent SSL automatically and it's very nice in most of cases, but sometimes it's getting
stuck in those persistent SSL sessions between connections and I can't find a reliable way to reset it.
I'm feeling like I'm missing something obvious, but releasing object doesn't do the trick.
More specifically - if I get to some https URL it asks for client cert. If I ignore the request with
continueWithoutCredentialForAuthenticationChallenge: server returns status 200 and xml with error in the body.
Now I'm picking proper certificate and want to reconnect, but server doesn't
send client cert challenge anymore because SSL session is persistent and it simply returns to previous unauthenticated
state. A real bummer and I can't work it around reliably - sometimes it goes away on it's own, but may stay this way for pretty long.
My guess is that the SSL context is global and has some inactivity expiration.
Just in case - I realize that the server is not behaving properly in this case, but this is irrelevant at the moment.
And similar question about sockets and tcp - how to make sure that all socket associated to some request are really closed and
I'm guaranteed to have a fresh tcp/http connection to a server?
Thanks!
Andrey _______________________________________________
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