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

Big Chungus

06/05/2022, 8:12 PM
I'm making a TON of requests to the same host but different paths. Is it worth somehow keeping the client connection open between requests instead of closing and reopening them on each request? If so, how would that be done with ktor-client (looking at code
get("url")
closes the connection after the request is fulfilled).
a

Aleksei Tirman [JB]

06/07/2022, 8:28 AM
What engine do you use?
b

Big Chungus

06/07/2022, 8:30 AM
CIO
a

Aleksei Tirman [JB]

06/07/2022, 9:48 AM
I suggest using another engine like
Apache
or
OkHttp
to reuse connections.
3 Views