# RESTART REQUIRED
server.shutdownPort = 8081
+# Timeout (in milliseconds) for http and https requests
+# Increase this value if you get java.util.concurrent.TimeoutException errors
+#
+# SINCE 1.9.0
+# RESTART REQUIRED
+server.httpTimeout = 30000
+
#
# Gitblit Filestore Settings
#
ServerConnector connector = new ServerConnector(server, factory);
connector.setSoLingerTime(-1);
- connector.setIdleTimeout(30000);
+ connector.setIdleTimeout(settings.getLong(Keys.server.httpTimeout, 30000L));
connector.setPort(params.securePort);
String bindInterface = settings.getString(Keys.server.httpsBindInterface, null);
if (!StringUtils.isEmpty(bindInterface)) {
ServerConnector connector = new ServerConnector(server, new HttpConnectionFactory(httpConfig));
connector.setSoLingerTime(-1);
- connector.setIdleTimeout(30000);
+ connector.setIdleTimeout(settings.getLong(Keys.server.httpTimeout, 30000L));
connector.setPort(params.port);
String bindInterface = settings.getString(Keys.server.httpBindInterface, null);
if (!StringUtils.isEmpty(bindInterface)) {
public String ldapLdifFile;
}
-}
\ No newline at end of file
+}