diff --git a/plexpy/config.py b/plexpy/config.py index 7a4d6b64..16cf9579 100644 --- a/plexpy/config.py +++ b/plexpy/config.py @@ -137,6 +137,7 @@ _CONFIG_DEFINITIONS = { 'HTTP_RATE_LIMIT_ATTEMPTS': (int, 'General', 10), 'HTTP_RATE_LIMIT_ATTEMPTS_INTERVAL': (int, 'General', 300), 'HTTP_RATE_LIMIT_LOCKOUT_TIME': (int, 'General', 300), + 'HTTP_THREAD_POOL': (int, 'General', 10), 'INTERFACE': (str, 'General', 'default'), 'IMGUR_CLIENT_ID': (str, 'Monitoring', ''), 'JOURNAL_MODE': (str, 'Advanced', 'WAL'), diff --git a/plexpy/webstart.py b/plexpy/webstart.py index ac233526..a3e5fd48 100644 --- a/plexpy/webstart.py +++ b/plexpy/webstart.py @@ -88,7 +88,7 @@ def initialize(options): 'server.socket_port': options['http_port'], 'server.socket_host': options['http_host'], 'environment': options['http_environment'], - 'server.thread_pool': 10, + 'server.thread_pool': plexpy.CONFIG.HTTP_THREAD_POOL, 'server.max_request_body_size': 1073741824, 'server.socket_timeout': 60, 'tools.encode.on': True, @@ -135,6 +135,7 @@ def initialize(options): else: plexpy.HTTP_ROOT = options['http_root'] = '/' + logger.info("Tautulli WebStart :: Thread Pool Size: %d.", plexpy.CONFIG.HTTP_THREAD_POOL) cherrypy.config.update(options_dict) conf = {