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

darkmoon_uk

04/22/2021, 1:46 PM
I just found out that Ktor is leaking memory like a sieve in my Kotlin/Native Application. Is there anything I can do about this? My App makes HTTP request every 5 seconds on average; it's necessarily chatty, so the leaks add up very quickly and cause the App to be force quit by iOS within an hour. Seeing this: https://youtrack.jetbrains.com/issue/KTOR-1238 ...I have ensured that HttpClient is not being recreated, a couple of instances are being reused. But HttpResponse is probably the one being leaked and I see no solution.
d

Dominaezzz

04/22/2021, 3:18 PM
You can just avoid the response exception.
7 Views