From eb2ebf0110f5bedd3e93205b43717cdee0ea9891 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 25 Dec 2020 14:04:47 +0100 Subject: [PATCH] Set connection pool size to 1 --- app/src/main/java/eu/faircode/email/EmailService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index 03e9276b62..817a2505b8 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -130,7 +130,7 @@ public class EmailService implements AutoCloseable { private final static int SEARCH_TIMEOUT = 90 * 1000; // milliseconds private final static int FETCH_SIZE = 1024 * 1024; // bytes, default 16K - private final static int POOL_SIZE = 2; // connections + private final static int POOL_SIZE = 1; // connections private final static int POOL_TIMEOUT = 90 * 1000; // milliseconds, default 45 sec private final static int TCP_KEEP_ALIVE_INTERVAL = 9 * 60; // seconds