~mnordhoff/loggerhead/cheezum

« back to all changes in this revision

Viewing changes to loggerhead/main.py

  • Committer: Matt Nordhoff
  • Date: 2009-11-30 07:38:20 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20091130073820-z7jcg4g11bvcbkcv
Drop threadpool_workers to 6 (default is 10).

Perhaps this will save RAM.

I might like to go down to 4, but since spawn_if_under defaults to 5, it might end up spawning new threads oddly frequently. Thoguh that probably wouldn't be a problem.

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
        protocol = config.get_option('protocol')
224
224
 
225
225
    if protocol == 'http':
226
 
        httpserver.serve(app, host=host, port=port)
 
226
        httpserver.serve(app, host=host, port=port, threadpool_workers=6)
227
227
    else:
228
228
        if protocol == 'fcgi':
229
229
            from flup.server.fcgi import WSGIServer