Browse Source

Merge pull request #1243 from sebastianopilla/master

Fixes the 30 seconds timeout when cloning over HTTP
tags/r1.9.0
James Moger 7 years ago
parent
commit
a13f07850f

+ 7
- 0
src/main/distrib/data/defaults.properties View File

@@ -2134,6 +2134,13 @@ server.requireClientCertificates = false
# RESTART REQUIRED
server.shutdownPort = 8081

# Http idle 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.httpIdleTimeout = 30000

#
# Gitblit Filestore Settings
#

+ 3
- 3
src/main/java/com/gitblit/GitBlitServer.java View File

@@ -293,7 +293,7 @@ public class GitBlitServer {

ServerConnector connector = new ServerConnector(server, factory);
connector.setSoLingerTime(-1);
connector.setIdleTimeout(30000);
connector.setIdleTimeout(settings.getLong(Keys.server.httpIdleTimeout, 30000L));
connector.setPort(params.securePort);
String bindInterface = settings.getString(Keys.server.httpsBindInterface, null);
if (!StringUtils.isEmpty(bindInterface)) {
@@ -330,7 +330,7 @@ public class GitBlitServer {

ServerConnector connector = new ServerConnector(server, new HttpConnectionFactory(httpConfig));
connector.setSoLingerTime(-1);
connector.setIdleTimeout(30000);
connector.setIdleTimeout(settings.getLong(Keys.server.httpIdleTimeout, 30000L));
connector.setPort(params.port);
String bindInterface = settings.getString(Keys.server.httpBindInterface, null);
if (!StringUtils.isEmpty(bindInterface)) {
@@ -608,4 +608,4 @@ public class GitBlitServer {
public String ldapLdifFile;

}
}
}

Loading…
Cancel
Save