ASF Bugzilla – Attachment 22247 Details for
Bug 44285
ssl.SessionId Cache Control
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add sslSessionCacheSize and sslSessionTimeout attributes to <Connector>
SSLSessionContext.diff (text/plain), 1.90 KB, created by
Chris Elving
on 2008-07-11 14:13:20 UTC
(
hide
)
Description:
Add sslSessionCacheSize and sslSessionTimeout attributes to <Connector>
Filename:
MIME Type:
Creator:
Chris Elving
Created:
2008-07-11 14:13:20 UTC
Size:
1.90 KB
patch
obsolete
>==== //depot/edelivery/server/dev/java/tomcat/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java#1 - /Users/celving/p4/celving-NCCP-20080709/edelivery/server/dev/java/tomcat/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java ==== >@@ -49,6 +49,7 @@ > import javax.net.ssl.SSLException; > import javax.net.ssl.SSLServerSocket; > import javax.net.ssl.SSLServerSocketFactory; >+import javax.net.ssl.SSLSessionContext; > import javax.net.ssl.SSLSocket; > import javax.net.ssl.TrustManager; > import javax.net.ssl.TrustManagerFactory; >@@ -74,6 +75,7 @@ > * @author EKR -- renamed to JSSESocketFactory > * @author Jan Luehe > * @author Bill Barker >+ * @author Chris Elving > */ > public class JSSESocketFactory > extends org.apache.tomcat.util.net.ServerSocketFactory { >@@ -380,6 +382,22 @@ > getTrustManagers(keystoreType, trustAlgorithm), > new SecureRandom()); > >+ // Configure the optional server SSLSessionContext >+ String sslSessionCacheSize = (String) attributes.get("sslSessionCacheSize"); >+ String sslSessionTimeout = (String) attributes.get("sslSessionTimeout"); >+ if (sslSessionCacheSize != null || sslSessionTimeout != null) { >+ SSLSessionContext sessionContext = context.getServerSessionContext(); >+ if (sessionContext != null) { >+ if (sslSessionCacheSize != null) >+ sessionContext.setSessionCacheSize(Integer.parseInt(sslSessionCacheSize)); >+ if (sslSessionTimeout != null) >+ sessionContext.setSessionTimeout(Integer.parseInt(sslSessionTimeout)); >+ } else { >+ log.error(protocol + >+ " does not have a server SSL session context"); >+ } >+ } >+ > // create proxy > sslProxy = context.getServerSocketFactory(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44285
: 22247