[Checkins] SVN: Sandbox/J1m/resumelb/src/zc/resumelb/worker.py Updated server runner to reflect new connection direction.
Jim Fulton
jim at zope.com
Sun Jan 22 18:17:19 UTC 2012
Log message for revision 124129:
Updated server runner to reflect new connection direction.
Changed:
U Sandbox/J1m/resumelb/src/zc/resumelb/worker.py
-=-
Modified: Sandbox/J1m/resumelb/src/zc/resumelb/worker.py
===================================================================
--- Sandbox/J1m/resumelb/src/zc/resumelb/worker.py 2012-01-22 14:20:49 UTC (rev 124128)
+++ Sandbox/J1m/resumelb/src/zc/resumelb/worker.py 2012-01-22 18:17:19 UTC (rev 124129)
@@ -137,8 +137,10 @@
pass
-def server_runner(app, global_conf, lb, history=500): # paste deploy hook
+def server_runner(app, global_conf, address, history=500, threads=1):
+ # paste deploy hook
logging.basicConfig(level=logging.INFO)
- host, port = lb.split(':')
- Worker(app, (host, int(port)), dict(history=history))
+ host, port = address.split(':')
+ Worker(app, (host, int(port)), dict(history=history, threads=threads)
+ ).server.serve_forever()
More information about the checkins
mailing list