Upgrade to Tomcat 8.5.16

This commit uses the replacement for deprecated APIs in 8.5.16 to ease
a forward compatibility with Tomcat 9

Closes gh-9611
This commit is contained in:
Stephane Nicoll
2017-06-27 14:38:02 +02:00
parent 88c770486c
commit 1b181b2f34
2 changed files with 2 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ public class DefaultServletWebServerFactoryCustomizer
ProtocolHandler handler = connector.getProtocolHandler();
if (handler instanceof AbstractProtocol) {
AbstractProtocol<?> protocol = (AbstractProtocol<?>) handler;
protocol.setBacklog(acceptCount);
protocol.setAcceptCount(acceptCount);
}
}

View File

@@ -352,7 +352,7 @@ public class DefaultServletWebServerFactoryCustomizerTests {
embeddedFactory.start();
try {
assertThat(((AbstractProtocol<?>) embeddedFactory.getTomcat().getConnector()
.getProtocolHandler()).getBacklog()).isEqualTo(10);
.getProtocolHandler()).getAcceptCount()).isEqualTo(10);
}
finally {
embeddedFactory.stop();