File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2134,6 +2134,13 @@ server.requireClientCertificates = false
2134
2134
# RESTART REQUIRED
2135
2135
server.shutdownPort = 8081
2136
2136
2137
+ # Http idle Timeout (in milliseconds) for http and https requests
2138
+ # Increase this value if you get java.util.concurrent.TimeoutException errors
2139
+ #
2140
+ # SINCE 1.9.0
2141
+ # RESTART REQUIRED
2142
+ server.httpIdleTimeout = 30000
2143
+
2137
2144
#
2138
2145
# Gitblit Filestore Settings
2139
2146
#
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public void log(String message) {
293
293
294
294
ServerConnector connector = new ServerConnector (server , factory );
295
295
connector .setSoLingerTime (-1 );
296
- connector .setIdleTimeout (30000 );
296
+ connector .setIdleTimeout (settings . getLong ( Keys . server . httpIdleTimeout , 30000L ) );
297
297
connector .setPort (params .securePort );
298
298
String bindInterface = settings .getString (Keys .server .httpsBindInterface , null );
299
299
if (!StringUtils .isEmpty (bindInterface )) {
@@ -330,7 +330,7 @@ public void log(String message) {
330
330
331
331
ServerConnector connector = new ServerConnector (server , new HttpConnectionFactory (httpConfig ));
332
332
connector .setSoLingerTime (-1 );
333
- connector .setIdleTimeout (30000 );
333
+ connector .setIdleTimeout (settings . getLong ( Keys . server . httpIdleTimeout , 30000L ) );
334
334
connector .setPort (params .port );
335
335
String bindInterface = settings .getString (Keys .server .httpBindInterface , null );
336
336
if (!StringUtils .isEmpty (bindInterface )) {
@@ -608,4 +608,4 @@ public static class Params {
608
608
public String ldapLdifFile ;
609
609
610
610
}
611
- }
611
+ }
You can’t perform that action at this time.
0 commit comments