[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - client.py:1.19
Guido van Rossum
guido@python.org
Fri, 27 Sep 2002 15:49:15 -0400
Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv3295
Modified Files:
client.py
Log Message:
Add a log msg "closing troubled socket <address>" when we receive an
'x' event for a wrapper and then close it.
=== ZODB3/ZEO/zrpc/client.py 1.18 => 1.19 ===
--- ZODB3/ZEO/zrpc/client.py:1.18 Fri Sep 27 14:33:47 2002
+++ ZODB3/ZEO/zrpc/client.py Fri Sep 27 15:49:15 2002
@@ -323,7 +323,7 @@
return 0
# Select connecting wrappers
connecting = [wrap
- for wrap in wrappers.keys()
+ for wrap in wrappers.keys()
if wrap.state == "connecting"]
if not connecting:
break
@@ -335,6 +335,7 @@
continue
# Exceptable wrappers are in trouble; close these suckers
for wrap in x:
+ log("CT: closing troubled socket %s" % str(wrap.addr))
del wrappers[wrap]
wrap.close()
# Writable sockets are connected