[Zope-Checkins] CVS: Zope/lib/python/Signals - Signals.py:1.3.2.1
Chris McDonough
chrism@zope.com
Tue, 8 Oct 2002 19:00:17 -0400
Update of /cvs-repository/Zope/lib/python/Signals
In directory cvs.zope.org:/tmp/cvs-serv31784
Modified Files:
Tag: Zope-2_6-branch
Signals.py
Log Message:
Dont try to close socket connections. This hosed ZEO clients.
=== Zope/lib/python/Signals/Signals.py 1.3 => 1.3.2.1 ===
--- Zope/lib/python/Signals/Signals.py:1.3 Wed Aug 28 13:49:38 2002
+++ Zope/lib/python/Signals/Signals.py Tue Oct 8 19:00:17 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