Join Slack
Powered by
Does ktor provide a way to catch ipc signals (e.g....
# ktor
j
jonathan
03/04/2018, 8:16 PM
Does ktor provide a way to catch ipc signals (e.g. SIGTERM or SIGINT) so server shutdown can be handled gracefully?
c
cy
03/05/2018, 10:05 AM
Only if you are running you host in
DevelopmentEngine
.
cy
03/05/2018, 10:05 AM
Otherwise you have to do it manually, like this:
https://github.com/ktorio/ktor/blob/80f8c7bf352ac8075b8922b7f1aa94d7dc2ffdce/ktor-server/ktor-server-cio/src/io/ktor/server/cio/DevelopmentEngine.kt#L12
j
jonathan
03/05/2018, 9:04 PM
Nice -- thank you!
d
Deactivated User
03/06/2018, 11:12 AM
I have started a FAQ section in
ktor.io
website. And added this Q/A:
http://ktor.io/servers/faq.html#sigterm
👍 1
10
Views
Open in Slack
Previous
Next