parent
da06b38117
commit
6ec3865ed0
|
|
@ -88,7 +88,7 @@ final class NettyGracefulShutdown implements GracefulShutdown {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (logger.isInfoEnabled()) {
|
if (logger.isInfoEnabled()) {
|
||||||
logger.info("Grace period elaped with " + activeRequests + " request(s) still active");
|
logger.info("Grace period elapsed with " + activeRequests + " request(s) still active");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ class TomcatGracefulShutdown implements GracefulShutdown {
|
||||||
for (Container context : host.findChildren()) {
|
for (Container context : host.findChildren()) {
|
||||||
while (active(context)) {
|
while (active(context)) {
|
||||||
if (System.currentTimeMillis() > end) {
|
if (System.currentTimeMillis() > end) {
|
||||||
logger.info("Grace period elaped with one or more requests still active");
|
logger.info("Grace period elapsed with one or more requests still active");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Thread.sleep(50);
|
Thread.sleep(50);
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ class UndertowGracefulShutdown implements GracefulShutdown {
|
||||||
logger.info("Graceful shutdown complete");
|
logger.info("Graceful shutdown complete");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
logger.info("Grace period elaped with one or more requests still active");
|
logger.info("Grace period elapsed with one or more requests still active");
|
||||||
return graceful;
|
return graceful;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue