Hi guys, I'm hosting Ktor server on my android dev...
# ktor
a
Hi guys, I'm hosting Ktor server on my android device. The question is how do I stop the server as soon as possible, without waiting for requests to complete etc. Do I just pass zeroes to
stop
function? Is this
server.stop(gracePeriodMillis = 0, timeoutMillis = 0)
okay, or I need to pass non-zero values?
👌 1
👀 1
e
Yes, but I would put some tiny value to let the requests and connections chance to be handled gracefully
👍 1