ursus
03/15/2025, 5:20 PMJeff Hudson
03/15/2025, 6:47 PMursus
03/15/2025, 6:48 PMJeff Hudson
03/15/2025, 6:49 PMshutdownTimeout
when running your server locally. The default is 5 seconds, which adds an intentional 5 second delay before shutting down, to let any async processes cool offJeff Hudson
03/15/2025, 6:49 PMursus
03/15/2025, 6:54 PMfun main(args: Array<String>) {
embeddedServer(
factory = Netty,
host = "0.0.0.0",
port = 8081,
) {
module()
}.start(wait = true)
}
Jeff Hudson
03/15/2025, 6:55 PMursus
03/15/2025, 6:55 PMktor-version = "3.1.1"
Jeff Hudson
03/15/2025, 6:55 PMJeff Hudson
03/15/2025, 6:56 PMfun main(args: Array<String>) {
embeddedServer(
factory = Netty,
host = "0.0.0.0",
port = 8081,
configure = {
shutdownGracePeriod = xxx
shutdownTimeout = yyy
}
) {
module()
}.start(wait = true)
}
Jeff Hudson
03/15/2025, 6:56 PMJeff Hudson
03/15/2025, 6:56 PMursus
03/15/2025, 6:58 PMconfigure
overload; but then there's no host/port; guess I'll lokt into it thanks!Jeff Hudson
03/15/2025, 7:00 PMfun main(args: Array<String>) {
embeddedServer(
factory = Netty,
configure = {
connector {
host = "0.0.0.0"
port = 8081
}
shutdownGracePeriod = xxx
shutdownTimeout = yyy
}
) {
module()
}.start(wait = true)
}
how about something like this?ursus
03/15/2025, 7:02 PMJeff Hudson
03/15/2025, 7:50 PM