|
|
@ -136,6 +136,13 @@ public class TomcatWebServerFactoryCustomizer implements
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void customizeProcessorCache(ConfigurableTomcatWebServerFactory factory,
|
|
|
|
|
|
|
|
int processorCache) {
|
|
|
|
|
|
|
|
factory.addConnectorCustomizers((
|
|
|
|
|
|
|
|
connector) -> ((AbstractHttp11Protocol<?>) connector.getProtocolHandler())
|
|
|
|
|
|
|
|
.setProcessorCache(processorCache));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void customizeMaxConnections(ConfigurableTomcatWebServerFactory factory,
|
|
|
|
private void customizeMaxConnections(ConfigurableTomcatWebServerFactory factory,
|
|
|
|
int maxConnections) {
|
|
|
|
int maxConnections) {
|
|
|
|
factory.addConnectorCustomizers((connector) -> {
|
|
|
|
factory.addConnectorCustomizers((connector) -> {
|
|
|
@ -158,13 +165,6 @@ public class TomcatWebServerFactoryCustomizer implements
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void customizeProcessorCache(ConfigurableTomcatWebServerFactory factory,
|
|
|
|
|
|
|
|
int processorCache) {
|
|
|
|
|
|
|
|
factory.addConnectorCustomizers((
|
|
|
|
|
|
|
|
connector) -> ((AbstractHttp11Protocol<?>) connector.getProtocolHandler())
|
|
|
|
|
|
|
|
.setProcessorCache(processorCache));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void customizeRemoteIpValve(ConfigurableTomcatWebServerFactory factory) {
|
|
|
|
private void customizeRemoteIpValve(ConfigurableTomcatWebServerFactory factory) {
|
|
|
|
Tomcat tomcatProperties = this.serverProperties.getTomcat();
|
|
|
|
Tomcat tomcatProperties = this.serverProperties.getTomcat();
|
|
|
|
String protocolHeader = tomcatProperties.getProtocolHeader();
|
|
|
|
String protocolHeader = tomcatProperties.getProtocolHeader();
|
|
|
|