From 00a35b7b5cab34f72f7807b844e00039b8d55e89 Mon Sep 17 00:00:00 2001 From: rafael lisboa Date: Thu, 4 Jun 2015 14:43:13 -0300 Subject: remove apparently unneeded extra procedure when reactor stops also add comment with more context on why adjustPoolsize is needed. --- service/pixelated/config/__init__.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'service/pixelated/config/__init__.py') diff --git a/service/pixelated/config/__init__.py b/service/pixelated/config/__init__.py index bb1fda2c..ef2de981 100644 --- a/service/pixelated/config/__init__.py +++ b/service/pixelated/config/__init__.py @@ -43,16 +43,8 @@ def start_user_agent(loading_app, host, port, sslkey, sslcert, leap_home, leap_s else: reactor.listenTCP(port, Site(resource), interface=host) - reactor.threadpool.adjustPoolsize(20, 40) - reactor.stop = stop_incoming_mail_fetcher(reactor.stop, leap_session) - - -def stop_incoming_mail_fetcher(reactor_stop_function, leap_session): - def wrapper(): - leap_session.stop_background_jobs() - reactor.threadpool.stop() - reactor_stop_function() - return wrapper + # soledad needs lots of threads + reactor.threadpool.adjustPoolsize(5, 15) def _ssl_options(sslkey, sslcert): -- cgit v1.2.3