[Zodb-checkins] CVS: ZEO/ZEO/zrpc - client.py:1.1.2.5

Tim Peters tim.one@home.com
Sat, 26 Jan 2002 13:01:32 -0500


Update of /cvs-repository/ZEO/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv27609/zrpc

Modified Files:
      Tag: Standby-branch
	client.py 
Log Message:
Added a YYY question to an unclear XXX comment.
Whitespace normalization.


=== ZEO/ZEO/zrpc/client.py 1.1.2.4 => 1.1.2.5 ===
         finishes quickly.
         """
-        
-        # XXX will a single attempt take too long?  
+
+        # XXX will a single attempt take too long?
         self.connect()
         try:
             event = self._thread.one_attempt
@@ -145,7 +145,7 @@
     # helper for non-local exit
     def __init__(self, sock):
         self.sock = sock
-            
+
 class ConnectThread(threading.Thread):
     """Thread that tries to connect to server given one or more addresses.
 
@@ -177,7 +177,7 @@
         # call to attempt_connects().  This allows the
         # ConnectionManager to make an attempt to connect right away,
         # but not block for too long if the server isn't immediately
-        # available.  
+        # available.
 
     def stop(self):
         self.stopped = 1
@@ -194,7 +194,7 @@
             if delay > self.tmax:
                 delay = self.tmax
         log("thread exiting: %s" % self.getName())
-                
+
     def close_sockets(self):
         for s in self.sockets.keys():
             s.close()
@@ -213,6 +213,8 @@
                 s.setblocking(0)
                 self.sockets[s] = addr
                 # XXX can still block for a while if addr requires DNS
+                # YYY What is that XXX comment trying to say?  self.connect
+                # YYY explicitly tolerates EINPROGRESS.
                 e = self.connect(s)
 
             # next wait until they actually connect