[Opensrf-commits] r1332 - trunk/src/python/osrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 20 15:44:30 EDT 2008
Author: erickson
Date: 2008-05-20 15:44:26 -0400 (Tue, 20 May 2008)
New Revision: 1332
Modified:
trunk/src/python/osrf/server.py
Log:
now disconnecting and clearing network handles where appropriate, but not always both
Modified: trunk/src/python/osrf/server.py
===================================================================
--- trunk/src/python/osrf/server.py 2008-05-20 19:43:13 UTC (rev 1331)
+++ trunk/src/python/osrf/server.py 2008-05-20 19:44:26 UTC (rev 1332)
@@ -33,7 +33,7 @@
def __init__(self, service):
self.service = service # service name
- self.application = None
+ self.application = None # the application we're serving
self.max_requests = 0 # max child requests
self.max_children = 0 # max num of child processes
self.min_childen = 0 # min num of child processes
@@ -83,6 +83,7 @@
def run(self):
+ osrf.net.get_network_handle().disconnect()
osrf.net.clear_network_handle()
self.spawn_children()
self.handle_signals()
@@ -226,6 +227,8 @@
child.pid = os.getpid()
child.init()
child.run()
+ osrf.net.get_network_handle().disconnect()
+ osrf.log.log_internal("child exiting...")
os._exit(0)
def register_routers(self):
More information about the opensrf-commits
mailing list