Commit 1b181b2f authored by Stephane Nicoll's avatar Stephane Nicoll

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
parent 88c77048
......@@ -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);
}
}
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment