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 ...@@ -276,7 +276,7 @@ public class DefaultServletWebServerFactoryCustomizer
ProtocolHandler handler = connector.getProtocolHandler(); ProtocolHandler handler = connector.getProtocolHandler();
if (handler instanceof AbstractProtocol) { if (handler instanceof AbstractProtocol) {
AbstractProtocol<?> protocol = (AbstractProtocol<?>) handler; AbstractProtocol<?> protocol = (AbstractProtocol<?>) handler;
protocol.setBacklog(acceptCount); protocol.setAcceptCount(acceptCount);
} }
} }
......
...@@ -352,7 +352,7 @@ public class DefaultServletWebServerFactoryCustomizerTests { ...@@ -352,7 +352,7 @@ public class DefaultServletWebServerFactoryCustomizerTests {
embeddedFactory.start(); embeddedFactory.start();
try { try {
assertThat(((AbstractProtocol<?>) embeddedFactory.getTomcat().getConnector() assertThat(((AbstractProtocol<?>) embeddedFactory.getTomcat().getConnector()
.getProtocolHandler()).getBacklog()).isEqualTo(10); .getProtocolHandler()).getAcceptCount()).isEqualTo(10);
} }
finally { finally {
embeddedFactory.stop(); 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