From 4d2755e17c9bcc08d3d0918f8d32fedea991874e Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 25 Jul 2019 20:13:45 +0200 Subject: [PATCH] Increased read/write timeout to 60 seconds --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index f50bef3c53..4885872342 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -76,8 +76,8 @@ public class MessageHelper { private MimeMessage imessage; private final static int CONNECT_TIMEOUT = 20 * 1000; // milliseconds - private final static int WRITE_TIMEOUT = 40 * 1000; // milliseconds - private final static int READ_TIMEOUT = 40 * 1000; // milliseconds + private final static int WRITE_TIMEOUT = 60 * 1000; // milliseconds + private final static int READ_TIMEOUT = 60 * 1000; // milliseconds private final static int FETCH_SIZE = 256 * 1024; // bytes, default 16K private final static int POOL_TIMEOUT = 45 * 1000; // milliseconds, default 45 sec