summaryrefslogtreecommitdiff
path: root/mail
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
commit9569aba3acfa2723490690943cbdf1b017213acc (patch)
tree5014a7f390a3795c2e78e39869aebfbcfdb97c19 /mail
parent3d2fd0a2ecf1efe19f6b171740d8604d8fb2ec0d (diff)
suggest bigger threadpool to reactors that honor it
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/imap/service/imap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/src/leap/mail/imap/service/imap.py b/mail/src/leap/mail/imap/service/imap.py
index 6041961..a7799ca 100644
--- a/mail/src/leap/mail/imap/service/imap.py
+++ b/mail/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