summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/service
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-12 12:40:04 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 11:39:50 -0400
commit1217be6c792d87134f6801591c7bfa9536c9a3d1 (patch)
treea250c3885d0422e5939a2058e88d3e693870274a /src/leap/mail/imap/service
parent1ff1663fb2968adff87208134c374c4084670ace (diff)
suggest bigger threadpool to reactors that honor it
Diffstat (limited to 'src/leap/mail/imap/service')
-rw-r--r--src/leap/mail/imap/service/imap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/mail/imap/service/imap.py b/src/leap/mail/imap/service/imap.py
index 6041961..a7799ca 100644
--- a/src/leap/mail/imap/service/imap.py
+++ b/src/leap/mail/imap/service/imap.py
@@ -171,6 +171,9 @@ def run_service(*args, **kwargs):
the protocol.
"""
from twisted.internet import reactor
+ # it looks like qtreactor does not honor this,
+ # but other reactors should.
+ reactor.suggestThreadPoolSize(20)
leap_assert(len(args) == 2)
soledad, keymanager = args