[geary] Set the minimum IMAP pool size to something a bit more realistic.



commit e744c284abbd0c64e2a565f81783f24e7210c6f1
Author: Michael James Gratton <mike vee net>
Date:   Thu Jan 18 15:00:26 2018 +1100

    Set the minimum IMAP pool size to something a bit more realistic.

 src/engine/imap/api/imap-account.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/engine/imap/api/imap-account.vala b/src/engine/imap/api/imap-account.vala
index 7e77b0a..0710064 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]