Hi, I migrated my one of backend api project from ...
# ktor
s
Hi, I migrated my one of backend api project from php to ktor and deployed for 10% users which are almost 5000. But i have one weired issue with ktor all request which come on ktor don't close even if i stop new incoming requests and its connections keep opened. Server running on port
7171
and when i run following command
ss -ant | grep :7171 | wc -l
numbers not change even if try after an few hours and no more new request coming. I think ktor using something like keep alive and also http2 for keeping connection pool but its keep increasing after 1 days connections go to 20k+ and server stop working. I tested same thing with my php project with apache project that is working fine without any issue and all connections close immediately when stop apache. Is there any thing I'm doing wrong or can i change to close connection when request complete?