Skip to content

Commit 488a053

Browse files
authored
Align HTTP keep-alive with Jetty default (#296)
1 parent a5c361b commit 488a053

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ To run different web applications for diffent virtual hosts:
7373

7474
--httpPort = set the http listening port. -1 to disable, Default is 8080
7575
--httpListenAddress = set the http listening address. Default is all interfaces
76-
--httpKeepAliveTimeout = how long idle HTTP keep-alive connections are kept around (in ms; default 5000)?
76+
--httpKeepAliveTimeout = how long idle HTTP keep-alive connections are kept around (in ms; default 30000)?
7777
--httpsPort = set the https listening port. -1 to disable, Default is disabled
7878
--httpsListenAddress = set the https listening address. Default is all interfaces
79-
--httpsKeepAliveTimeout = how long idle HTTPS keep-alive connections are kept around (in ms; default 5000)?
79+
--httpsKeepAliveTimeout = how long idle HTTPS keep-alive connections are kept around (in ms; default 30000)?
8080
--httpsKeyStore = the location of the SSL KeyStore file. Default is ./winstone.ks
8181
--httpsKeyStorePassword = the password for the SSL KeyStore file. Default is null
8282
--httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509

src/main/java/winstone/cmdline/Option.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static List<Option<?>> all(Class<?> clazz) {
5252
/**
5353
* Number of milliseconds for the HTTP keep-alive to hang around until the next request is sent.
5454
*/
55-
private static final OInt _KEEP_ALIVE_TIMEOUT = integer("KeepAliveTimeout",5000);
55+
private static final OInt _KEEP_ALIVE_TIMEOUT = integer("KeepAliveTimeout",30000);
5656

5757

5858
public static final OInt HTTP_PORT=integer("http"+_PORT,8080);

src/main/resources/winstone/LocalStrings.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ Launcher.UsageInstructions.Options=\
6464
\ --debug = set the level of debug msgs (1-9). Default is 5 (INFO level)\n\n\
6565
\ --httpPort = set the http listening port. -1 to disable, Default is 8080\n\
6666
\ --httpListenAddress = set the http listening address. Default is all interfaces\n\
67-
\ --httpKeepAliveTimeout = how long idle HTTP keep-alive connections are kept around (in ms; default 5000)?\n\
67+
\ --httpKeepAliveTimeout = how long idle HTTP keep-alive connections are kept around (in ms; default 30000)?\n\
6868
\ --httpsPort = set the https listening port. -1 to disable, Default is disabled\n\
6969
\ --httpsListenAddress = set the https listening address. Default is all interfaces\n\
70-
\ --httpsKeepAliveTimeout = how long idle HTTPS keep-alive connections are kept around (in ms; default 5000)?\n\
70+
\ --httpsKeepAliveTimeout = how long idle HTTPS keep-alive connections are kept around (in ms; default 30000)?\n\
7171
\ --httpsKeyStore = the location of the SSL KeyStore file. Default is ./winstone.ks\n\
7272
\ --httpsKeyStorePassword = the password for the SSL KeyStore file. Default is null\n\
7373
\ --httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509\n\

0 commit comments

Comments
 (0)