Skip to content
Browse files

fixups for spawning

  • Loading branch information...
1 parent ec7c5b6 commit 3e7368d9b74532f1737c04ba5cc7c0195e52ad06 nferrier committed Aug 6, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 ms.py
View
5 ms.py
@@ -22,7 +22,7 @@ def multiwsgidispatch(environ, start_response):
host = environ["HTTP_HOST"]
targetpart = host.split(".")[0]
# Make a regex that will match against targets
- target_re = re.compile(re.sub("-", "[_-]", targetpart))
+ target_re = re.compile("%s.*" % re.sub("-", "[_-]", targetpart))
for e in os.listdir(PATH):
if target_re.match(e):
try:
@@ -54,7 +54,8 @@ def spawning_config_factory(args):
'port': args.get('port'),
'app_factory': "ms.app_factory",
'app': "",
- 'num_processes': 1,
+ 'deadman_timeout': 10,
+ 'num_processes': 4,
}
# End

0 comments on commit 3e7368d

Please sign in to comment.
Something went wrong with that request. Please try again.