Polish
See gh-26135
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user