[Zodb-checkins] CVS: StandaloneZODB/ZEO - StorageServer.py:1.21.4.15

Jeremy Hylton jeremy@zope.com
Mon, 7 Jan 2002 16:03:39 -0500


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv12361

Modified Files:
      Tag: ZEO-ZRPC-Dev
	StorageServer.py 
Log Message:
Add a server_close() method that is called by forker to shutdown the
server.


=== StandaloneZODB/ZEO/StorageServer.py 1.21.4.14 => 1.21.4.15 ===
         for name, store in storages.items():
             fixup_storage(store)
-        Dispatcher(addr, factory=self.newConnection, reuse_addr=1)
+        self.dispatcher = Dispatcher(addr, factory=self.newConnection,
+                                     reuse_addr=1)
 
     def newConnection(self, sock, addr, nil):
         c = ManagedServerConnection(sock, addr, None, self)
@@ -153,7 +154,11 @@
             else:
                 p.client.info(info)
 
+    def close_server(self):
+        self.dispatcher.close()
+
     def close(self, conn):
+        # XXX who calls this?
         # called when conn is closed
         # way too inefficient
         removed = 0