[Zope-Checkins] CVS: Zope/lib/python/Signals - Signals.py:1.4
Chris McDonough
chrism@zope.com
Tue, 8 Oct 2002 18:59:26 -0400
Update of /cvs-repository/Zope/lib/python/Signals
In directory cvs.zope.org:/tmp/cvs-serv31658
Modified Files:
Signals.py
Log Message:
Dont try to close socket connections. This hosed ZEO clients.
=== Zope/lib/python/Signals/Signals.py 1.3 => 1.4 ===
--- Zope/lib/python/Signals/Signals.py:1.3 Wed Aug 28 13:49:38 2002
+++ Zope/lib/python/Signals/Signals.py Tue Oct 8 18:59:26 2002
@@ -70,18 +70,14 @@
def closeall():
- """Helper method to close network and database connections."""
+ """Helper method to close database connections. This also used
+ to close network connections, but that hosed ZEO clients in some
+ instances, so we don't do that anymore"""
import Globals
- import asyncore
- zLOG.LOG('Z2', zLOG.INFO, "Closing all open network connections")
- for socket in asyncore.socket_map.values():
- try: socket.close()
- except: pass
zLOG.LOG('Z2', zLOG.INFO, "Closing all open ZODB databases")
for db in Globals.opened:
- try: db.close()
- finally: pass
+ db.close()
def registerZopeSignals():
import signal