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

Lucas Milotich

12/29/2021, 8:05 PM
Hello, does anyone know how to limit open connections with ktor-netty? currently I have a rate limiter but on route level but i’m still opening new connections for every new incoming request
a

Aleksei Tirman [JB]

12/30/2021, 10:18 AM
It isn't possible to directly limit open connections but you can try to tweak requestQueueLimit and runningLimit parameters.
l

Lucas Milotich

12/30/2021, 10:33 PM
Hello @Aleksei Tirman [JB], yes, i tried with these but I didn’t have a noticeable difference
3 Views