From aab1be8bc885494f43680b2fc492dd224f68816b Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Mon, 30 Aug 2010 12:18:21 -0700 Subject: [PATCH] Update class docstring for HTTPServer. Closes #123. --- tornado/httpserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/httpserver.py b/tornado/httpserver.py index f5d5da67..be52c9de 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -116,10 +116,10 @@ class HTTPServer(object): http_server = httpserver.HTTPServer(handle_request) http_server.bind(8888) - http_server.start() # Forks multiple sub-processes + http_server.start(0) # Forks multiple sub-processes ioloop.IOLoop.instance().start() - start() detects the number of CPUs on this machine and "pre-forks" that + start(0) detects the number of CPUs on this machine and "pre-forks" that number of child processes so that we have one Tornado process per CPU, all with their own IOLoop. You can also pass in the specific number of child processes you want to run with if you want to override this