aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver/src/main/java/org
diff options
context:
space:
mode:
authorjason.damour <jason.damour@five9.com>2022-03-09 18:01:34 -0800
committersonartech <sonartech@sonarsource.com>2022-03-11 10:30:55 +0000
commitc1ae960d80677e8f13d033742b754a2221dbc33e (patch)
treec9bd3559324e98692afc04b963ee5242be6b781d /server/sonar-webserver/src/main/java/org
parent9e044bfd2a1a70ccdbf2b09c0e1252a21d93b51c (diff)
downloadsonarqube-c1ae960d80677e8f13d033742b754a2221dbc33e.tar.gz
sonarqube-c1ae960d80677e8f13d033742b754a2221dbc33e.zip
feat: support configuration of the tomcat keepAliveTimeout
Diffstat (limited to 'server/sonar-webserver/src/main/java/org')
-rw-r--r--server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java b/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java
index 7f335c17bfe..cd002d02adc 100644
--- a/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java
+++ b/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java
@@ -29,6 +29,7 @@ import static org.sonar.process.ProcessProperties.Property.WEB_HOST;
import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_ACCEPT_COUNT;
import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_MAX_THREADS;
import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_MIN_THREADS;
+import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_KEEP_ALIVE_TIMEOUT;
/**
* Configuration of Tomcat connectors
@@ -82,6 +83,7 @@ class TomcatConnectors {
connector.setProperty("minSpareThreads", String.valueOf(props.valueAsInt(WEB_HTTP_MIN_THREADS.getKey(), 5)));
connector.setProperty("maxThreads", String.valueOf(props.valueAsInt(WEB_HTTP_MAX_THREADS.getKey(), 50)));
connector.setProperty("acceptCount", String.valueOf(props.valueAsInt(WEB_HTTP_ACCEPT_COUNT.getKey(), 25)));
+ connector.setProperty("keepAliveTimeout", String.valueOf(props.valueAsInt(WEB_HTTP_KEEP_ALIVE_TIMEOUT.getKey(), 60000)));
}
private static void configureCompression(Connector connector) {