This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new af4a6a8 Enable session cache so session ID is available with APR af4a6a8 is described below commit af4a6a88df59cdb16e373e73071bc5c2f576cb41 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Aug 20 09:10:26 2020 +0100 Enable session cache so session ID is available with APR --- test/org/apache/catalina/valves/rewrite/TestResolverSSL.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/org/apache/catalina/valves/rewrite/TestResolverSSL.java b/test/org/apache/catalina/valves/rewrite/TestResolverSSL.java index 3d7d5f7..389fd58 100644 --- a/test/org/apache/catalina/valves/rewrite/TestResolverSSL.java +++ b/test/org/apache/catalina/valves/rewrite/TestResolverSSL.java @@ -31,6 +31,7 @@ import org.apache.catalina.startup.Tomcat; import org.apache.catalina.startup.TomcatBaseTest; import org.apache.catalina.valves.ValveBase; import org.apache.tomcat.util.buf.ByteChunk; +import org.apache.tomcat.util.net.SSLHostConfig; import org.apache.tomcat.util.net.TesterSupport; public class TestResolverSSL extends TomcatBaseTest { @@ -41,6 +42,10 @@ public class TestResolverSSL extends TomcatBaseTest { Container root = tomcat.getHost().findChild(""); root.getPipeline().addValve(new ResolverTestValve()); + // Enable session caching so the SSL Session is available when using APR + SSLHostConfig sslHostConfig = tomcat.getConnector().findSslHostConfigs()[0]; + sslHostConfig.setSessionCacheSize(20 * 1024); + tomcat.start(); ByteChunk res = getUrl("https://localhost:" + getPort() + "/protected"); // Just look a bit at the result --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org