Author: markt Date: Thu Feb 21 20:24:25 2019 New Revision: 1854091 URL: http://svn.apache.org/viewvc?rev=1854091&view=rev Log: Remove code that is essentially NO-OP
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java?rev=1854091&r1=1854090&r2=1854091&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java Thu Feb 21 20:24:25 2019 @@ -245,21 +245,11 @@ public class OpenSSLContext implements o // Set session cache size, if specified if (sslHostConfig.getSessionCacheSize() > 0) { SSLContext.setSessionCacheSize(ctx, sslHostConfig.getSessionCacheSize()); - } else { - // Get the default session cache size using SSLContext.setSessionCacheSize() - long sessionCacheSize = SSLContext.setSessionCacheSize(ctx, 20480); - // Revert the session cache size to the default value. - SSLContext.setSessionCacheSize(ctx, sessionCacheSize); } // Set session timeout, if specified if (sslHostConfig.getSessionTimeout() > 0) { SSLContext.setSessionCacheTimeout(ctx, sslHostConfig.getSessionTimeout()); - } else { - // Get the default session timeout using SSLContext.setSessionCacheTimeout() - long sessionTimeout = SSLContext.setSessionCacheTimeout(ctx, 300); - // Revert the session timeout to the default value. - SSLContext.setSessionCacheTimeout(ctx, sessionTimeout); } // List the ciphers that the client is permitted to negotiate --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org