Shortened grace period for shutdown

This commit is contained in:
nathan 2019-01-27 16:36:02 +01:00
parent 7e442f2f8a
commit 273523fc96

View File

@ -230,7 +230,7 @@ class Shutdownable {
} }
for (EventLoopGroup loopGroup : loopGroups) { for (EventLoopGroup loopGroup : loopGroups) {
Future<?> future = loopGroup.shutdownGracefully(maxShutdownWaitTimeInMilliSeconds / 2, maxShutdownWaitTimeInMilliSeconds, TimeUnit.MILLISECONDS); Future<?> future = loopGroup.shutdownGracefully(maxShutdownWaitTimeInMilliSeconds / 10, maxShutdownWaitTimeInMilliSeconds, TimeUnit.MILLISECONDS);
shutdownThreadList.add(future); shutdownThreadList.add(future);
Thread.yield(); Thread.yield();
} }