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

Brian Lloyd brian@digicool.com
Fri, 14 Dec 2001 14:43:29 -0500


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

Modified Files:
	asyncore.py 
Log Message:
Merged last Python 2.2 bugfix.


=== Zope/ZServer/medusa/asyncore.py 1.15 => 1.16 ===
             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