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

David Stibbe

06/06/2022, 9:19 PM
Wanted to share this, perhaps I'm missing/misunderstanding something: I was running a Ktor 2.0
testApplication
test with 100 async calls by a client . However, it started locking up quite quickly and not even sending the remaining calls to the server. At first I thought this problem must be in my service. But in the end it even happened if the service did nothing. I solved it by configuring the CIO engine for the client
Copy code
val client = createClient {
                engine { CIO }
                install(WebSockets)
            }
(the websockets is there because I needed it..) I was wondering: is this a known thing ? Or is there a different approach that would be preferred?
a

Aleksei Tirman [JB]

06/07/2022, 9:20 AM
This is a bug so I’ve filed it https://youtrack.jetbrains.com/issue/KTOR-4431.
d

David Stibbe

06/07/2022, 11:10 AM
Thank you blob smile happy
5 Views