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

eirikb

01/31/2020, 11:24 AM
Is it possible to disable Ktor client keep-alive?
e

e5l

01/31/2020, 11:51 AM
Hi @eirikb, sure 🙂 You can add header
Connection: close
e

eirikb

01/31/2020, 11:53 AM
@e5l Thank you! Just stumbled upon this after remembering this is probably related to specific engine https://stackoverflow.com/a/16807961
c

cy

02/03/2020, 1:24 PM
The only question is why do you want to do that? One usually should be fine with keep-alive while disabling it may cause performance issues
141 Views