|
|
@ -18,6 +18,7 @@ package org.springframework.boot.web.embedded.tomcat;
|
|
|
|
|
|
|
|
|
|
|
|
import java.time.Duration;
|
|
|
|
import java.time.Duration;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.catalina.Container;
|
|
|
|
import org.apache.catalina.Container;
|
|
|
@ -106,9 +107,7 @@ class TomcatGracefulShutdown implements GracefulShutdown {
|
|
|
|
private List<Connector> getConnectors() {
|
|
|
|
private List<Connector> getConnectors() {
|
|
|
|
List<Connector> connectors = new ArrayList<>();
|
|
|
|
List<Connector> connectors = new ArrayList<>();
|
|
|
|
for (Service service : this.tomcat.getServer().findServices()) {
|
|
|
|
for (Service service : this.tomcat.getServer().findServices()) {
|
|
|
|
for (Connector connector : service.findConnectors()) {
|
|
|
|
connectors.addAll(Arrays.asList(service.findConnectors()));
|
|
|
|
connectors.add(connector);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return connectors;
|
|
|
|
return connectors;
|
|
|
|
}
|
|
|
|
}
|
|
|
|