https://kotlinlang.org logo
#ktor
Title
# ktor
m

mbonnin

03/29/2020, 11:58 AM
I just upgraded from ktor 1.2.6 to 1.3.2 and my httpClient hangs on MacOSX. I'm using a manual dispatcher like described in https://github.com/Kotlin/kotlinx.coroutines/issues/470#issuecomment-440080970. Any idea what I'm doing wrong ?
Copy code
actual fun macOSMain() {
    GlobalScope.launch(mainDispatcher) {
        val response = HttpClient {
        }.get<HttpResponse>("<https://google.com/>") {
        }
        println("response status is: ${response.status}")
    }
    CFRunLoopRun()
}
Full repo at: https://github.com/martinbonnin/kmpCli/blob/ktor-hangs