[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/zrpc/client.py Make sure the minimum reconnect timeout is less than the max.
Jim Fulton
jim at zope.com
Tue Nov 18 20:45:04 EST 2008
Log message for revision 93118:
Make sure the minimum reconnect timeout is less than the max.
Changed:
U ZODB/trunk/src/ZEO/zrpc/client.py
-=-
Modified: ZODB/trunk/src/ZEO/zrpc/client.py
===================================================================
--- ZODB/trunk/src/ZEO/zrpc/client.py 2008-11-19 01:45:01 UTC (rev 93117)
+++ ZODB/trunk/src/ZEO/zrpc/client.py 2008-11-19 01:45:03 UTC (rev 93118)
@@ -34,7 +34,7 @@
def __init__(self, addrs, client, tmin=1, tmax=180):
self.addrlist = self._parse_addrs(addrs)
self.client = client
- self.tmin = tmin
+ self.tmin = min(tmin, tmax)
self.tmax = tmax
self.cond = threading.Condition(threading.Lock())
self.connection = None # Protected by self.cond
More information about the Zodb-checkins
mailing list