Update class docstring for HTTPServer.

Closes #123.
This commit is contained in:
Ben Darnell 2010-08-30 12:18:21 -07:00
parent 2ccfb35ff2
commit aab1be8bc8
1 changed files with 2 additions and 2 deletions

View File

@ -116,10 +116,10 @@ class HTTPServer(object):
http_server = httpserver.HTTPServer(handle_request) http_server = httpserver.HTTPServer(handle_request)
http_server.bind(8888) http_server.bind(8888)
http_server.start() # Forks multiple sub-processes http_server.start(0) # Forks multiple sub-processes
ioloop.IOLoop.instance().start() 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, 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 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 child processes you want to run with if you want to override this