[Zodb-checkins] CVS: StandaloneZODB/ZEO - StorageServer.py:1.34.2.9
Jeremy Hylton
jeremy@zope.com
Thu, 4 Apr 2002 16:26:22 -0500
Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv18512/ZEO
Modified Files:
Tag: zeo-1_0-debug-branch
StorageServer.py
Log Message:
In asyncore land, accept() can return None as well as an address pair.
=== StandaloneZODB/ZEO/StorageServer.py 1.34.2.8 => 1.34.2.9 ===
def handle_accept(self):
try:
- sock, addr = self.accept()
- except socket.error:
- sys.stderr.write('warning: accept failed\n')
+ r = self.accept()
+ if r is None:
+ return
+ sock, addr = r
+ except socket.error, err:
+ log.warning("accept() failed: %s" % err)
else:
ZEOConnection(self, sock, addr)