Join Slack
Powered by
Hi guys, I'm hosting Ktor server on my android dev...
# ktor
a
andev
06/25/2020, 1:55 PM
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
e5l
06/26/2020, 7:54 AM
Yes, but I would put some tiny value to let the requests and connections chance to be handled gracefully
👍 1
Open in Slack
Previous
Next