until full settings support is added, comment that out for now. added example keepalive
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 19 May 2009 14:14:46 +0000 (14:14 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 19 May 2009 14:14:46 +0000 (14:14 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1704 9efc2488-bf62-4759-914b-345cdb29e865

src/python/opensrf.py

index 1204f40..bb1b17e 100755 (executable)
@@ -82,12 +82,12 @@ def do_start():
     osrf.system.System.net_connect(
         config_file = config_file, config_context = config_ctx)
 
-    osrf.set.load(osrf.conf.get('domain'))
-    settings = osrf.json.to_json(osrf.set.get('apps/%s' % service))
+#    osrf.set.load(osrf.conf.get('domain'))
+#    settings = osrf.json.to_json(osrf.set.get('apps/%s' % service))
 
-    if settings['language'].lower() != 'python':
-        print '%s is not a Python application' % service
-        return
+#    if settings['language'].lower() != 'python':
+#        print '%s is not a Python application' % service
+#        return
 
     # XXX load the settings configs...
     osrf.app.Application.load(service, 'osrf.apps.example') # XXX example only for now
@@ -98,6 +98,7 @@ def do_start():
     controller.max_requests = 100
     controller.max_children = 6
     controller.min_children = 3
+    controller.keepalive = 5
 
     if as_daemon:
         osrf.system.System.daemonize()