See gh-26135
This commit is contained in:
izeye
2021-04-15 22:52:16 +09:00
committed by Stephane Nicoll
parent 641df02bc3
commit e27c85698d
11 changed files with 16 additions and 21 deletions

View File

@@ -380,7 +380,7 @@ public class ServerProperties {
/**
* Maximum number of HTTP requests that can be pipelined before the connection is
* closed. When set to 0 or 1, keep-alive and pipelining are disabled. When set to
* -1, an unlimited number of pipelined or keep-alive requests is allowed.
* -1, an unlimited number of pipelined or keep-alive requests are allowed.
*/
private int maxKeepAliveRequests = 100;

View File

@@ -227,7 +227,6 @@ class ServerPropertiesTests {
@Test
void testCustomizeTomcatKeepAliveTimeoutWithInfinite() {
bind("server.tomcat.keep-alive-timeout", "-1");
assertThat(this.properties.getTomcat().getKeepAliveTimeout().toMillis()).isEqualTo(-1);
assertThat(this.properties.getTomcat().getKeepAliveTimeout()).hasMillis(-1);
}