move the connections closing to a separate threadpool and limit the time we wait for reset() to complete

This commit is contained in:
Zlatin Balevsky
2019-10-29 09:01:41 +00:00
parent 6c806c4441
commit d7c7afe2c0
5 changed files with 31 additions and 10 deletions

View File

@@ -18,11 +18,8 @@ class Shutdown extends AbstractLifecycleHandler {
@Override
void execute() {
log.info("shutting down")
log.info("shutting down from lifecycle")
Core core = application.context.get("core")
if (core != null) {
Thread t = new Thread({ core.shutdown() } as Runnable)
t.start()
}
core?.shutdown()
}
}