[Mono-bugs] [Bug 80174][Wis] New - Make the ClientSessionCache timeout adjustable.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 7 05:35:52 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bugzilla at woy.nl.

http://bugzilla.ximian.com/show_bug.cgi?id=80174

--- shadow/80174	2006-12-07 05:35:52.000000000 -0500
+++ shadow/80174.tmp.19114	2006-12-07 05:35:52.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 80174
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Mono.Security
+AssignedTo: sebastien at ximian.com                            
+ReportedBy: bugzilla at woy.nl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Make the ClientSessionCache timeout adjustable.
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+In Mono.Security.Protocol.Tls.ClientSessionCache the timeout is a constant 
+set to 3 minutes. For the purpose of our application we would like to 
+extend this period. We propose to add an Environment variable to set the 
+timeout. When this variable is not set default to 3 minutes. This doesn't 
+change anything for existing configurations but makes it possible to 
+extend the timeout.
+
+For example change the following in ClientSessionCache.cs
+
+private const int ValidityInterval = 3 * 60;
+
+to something like:
+
+private static readonly int ValidityInterval;
+
+static ClientSessionInfo()
+{
+    string envValue = 
+Environment.GetEnvironmentVariable("MONO_TLS_SESSION_CACHE_TIMEOUT");
+    int parsedValue;
+    if (envValue != null && Int32.TryParse(envValue, out parsedValue))
+    {
+        ValidityInterval = parsedValue;
+    }
+    else
+    {
+        // we keep this item valid for 3 minutes (if unused)
+        ValidityInterval = 3 * 60;
+    }
+}


More information about the mono-bugs mailing list