Polish "Add server.netty.max-keep-alive-requests"

See gh-28875
This commit is contained in:
Stephane Nicoll
2022-01-04 10:25:39 +01:00
parent 0e94b2ce6e
commit 076ddc8579
4 changed files with 19 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -84,7 +84,6 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Rafiullah Hamedy
* @author Chris Bono
* @author Parviz Rozikov
* @author Leo Li
*/
class ServerPropertiesTests {
@@ -346,11 +345,6 @@ class ServerPropertiesTests {
assertThat(this.properties.getNetty().getMaxKeepAliveRequests()).isEqualTo(100);
}
@Test
void testCustomizeNettyMaxKeepAliveRequestsDefault() {
assertThat(this.properties.getNetty().getMaxKeepAliveRequests()).isEqualTo(-1);
}
@Test
void tomcatAcceptCountMatchesProtocolDefault() throws Exception {
assertThat(this.properties.getTomcat().getAcceptCount()).isEqualTo(getDefaultProtocol().getAcceptCount());

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.