[Zope-Checkins] CVS: Zope/ZServer/medusa - asyncore.py:1.15.2.2

Brian Lloyd brian@digicool.com
Fri, 14 Dec 2001 14:44:11 -0500


Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv30891

Modified Files:
      Tag: Zope-2_4-branch
	asyncore.py 
Log Message:
Merged last Python 2.2 bugfix.


=== Zope/ZServer/medusa/asyncore.py 1.15.2.1 => 1.15.2.2 ===
             self.socket.setblocking (0)
             self.connected = 1
-            self.addr = sock.getpeername()
+            # XXX Does the constructor require that the socket passed
+            # be connected?
+            try:
+                self.addr = sock.getpeername()
+            except socket.error:
+                # The addr isn't crucial
+                pass
         else:
             self.socket = None