From e744c284abbd0c64e2a565f81783f24e7210c6f1 Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Thu, 18 Jan 2018 15:00:26 +1100 Subject: [PATCH] Set the minimum IMAP pool size to something a bit more realistic. --- src/engine/imap/api/imap-account.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/imap/api/imap-account.vala b/src/engine/imap/api/imap-account.vala index 7e77b0a9..0710064e 100644 --- a/src/engine/imap/api/imap-account.vala +++ b/src/engine/imap/api/imap-account.vala @@ -29,6 +29,9 @@ */ private class Geary.Imap.Account : BaseObject { + /** Default IMAP session pool size. */ + private const int IMAP_MIN_POOL_SIZE = 2; + /** Determines if the IMAP account has been opened. */ public bool is_open { get; private set; default = false; } @@ -68,6 +71,7 @@ private class Geary.Imap.Account : BaseObject { this.name = account.id + ":imap"; this.account = account; this.session_mgr = new ClientSessionManager(account); + this.session_mgr.min_pool_size = IMAP_MIN_POOL_SIZE; this.session_mgr.ready.connect(on_session_ready); this.session_mgr.connection_failed.connect(on_connection_failed); this.session_mgr.login_failed.connect(on_login_failed);