This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 213b5db Enable session cache so session ID is available with APR 213b5db is described below commit 213b5db2c2629284072b5d90e1116c6b2e466afe 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 d4624a3..872ba06 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