[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Change default connect timeout from "never" to "1 minute"



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv17176/lib/mixminion

Modified Files:
	ClientMain.py 
Log Message:
Change default connect timeout from "never" to "1 minute"

Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- ClientMain.py	17 Feb 2003 15:02:25 -0000	1.62
+++ ClientMain.py	19 Feb 2003 03:40:34 -0000	1.63
@@ -918,6 +918,7 @@
         createPrivateDir(self.keyDir)
         self.surbKey = None
 
+    # XXXX support multiple pseudoidentities.
     def getSURBKey(self, create=0):
         """Return the 20-byte SURB key.  If it has not already been loaded,
            load it, asking the user for a password if needed.  If 'create' is
@@ -1438,6 +1439,8 @@
         timeout = self.config['Network'].get('ConnectionTimeout')
         if timeout:
             timeout = timeout[2]
+        else:
+            timeout = 60
 
         if noPool or lazyPool: 
             handles = []