-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Hanging when using preconfigured NSURLSession in last version (3.1.3) #4888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also tried this one. But response was never returned
and my delegate is
|
Are you able to reproduce this behavior if you wire the val config = NSURLSessionConfiguration.defaultSessionConfiguration()
-val newSession = NSURLSession.sessionWithConfiguration(config)
+val newSession = NSURLSession.sessionWithConfiguration(config, delegate, delegateQueue = null)
usePreconfiguredSession(
session = newSession,
delegate = delegate
) |
thanks for your reply, @osipxd it calls my ktor delegate with suggested method. but now i'm wondering how to pass my swift session with swift delegate is it possible? actually, i'm handling my ssl pinning in swift`s delegate
so ktor should call this method in swift implementation and receive the |
Does method HttpClient(Darwin) {
engine {
val pinningHandler = CertificatePinner.Builder()
.add("example.com", "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
.build()
handleChallenge(pinningHandler)
}
} |
much appreciate, Osip. |
Uh oh!
There was an error while loading. Please reload this page.
Hey there
the requests are hanging when I'm passing my session and delegate
It even doesn't call my KtorURLSessionDelegate
any tips for what can be the cause of the hanging? i also tried to pass NSURLSessionDelegate from my swift code (it crashes the app)
The text was updated successfully, but these errors were encountered: