Skip to content

Commit 67c9aa0

Browse files
committed
servlet: use setDiscardFacades(false) instead of RECYCLE_FACADES
1 parent 7a720fe commit 67c9aa0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

servlet/src/tomcatTest/java/io/grpc/servlet/TomcatTransportTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ public void start(ServerListener listener) throws IOException {
9494
Tomcat.addServlet(ctx, "TomcatTransportTest", grpcServlet).setAsyncSupported(true);
9595
ctx.addServletMappingDecoded("/*", "TomcatTransportTest");
9696
tomcatServer.getConnector().addUpgradeProtocol(new Http2Protocol());
97-
tomcatServer
98-
.getConnector()
99-
.setProperty("org.apache.catalina.connector.RECYCLE_FACADES", "false");
97+
tomcatServer.getConnector().setDiscardFacades(false);
10098
try {
10199
tomcatServer.start();
102100
} catch (LifecycleException e) {

0 commit comments

Comments
 (0)