mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Reduced connection timeout
This commit is contained in:
parent
a5dc2369d2
commit
9543eef292
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ public class EmailService implements AutoCloseable {
|
|||
static final int ENCRYPTION_STARTTLS = 1;
|
||||
static final int ENCRYPTION_NONE = 2;
|
||||
|
||||
final static int DEFAULT_CONNECT_TIMEOUT = 20; // seconds
|
||||
final static int DEFAULT_CONNECT_TIMEOUT = 15; // seconds
|
||||
|
||||
private final static int SEARCH_TIMEOUT = 90 * 1000; // milliseconds
|
||||
private final static int FETCH_SIZE = 1024 * 1024; // bytes, default 16K
|
||||
|
|
|
@ -111,7 +111,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
private static final int OPTIMIZE_KEEP_ALIVE_INTERVAL = 12; // minutes
|
||||
private static final int OPTIMIZE_POLL_INTERVAL = 15; // minutes
|
||||
private static final int CONNECT_BACKOFF_START = 4; // seconds
|
||||
private static final int CONNECT_BACKOFF_MAX = 8; // seconds (totally 4+8+2x20=52 seconds)
|
||||
private static final int CONNECT_BACKOFF_MAX = 8; // seconds (totally 4+8+2x15=42 seconds)
|
||||
private static final int CONNECT_BACKOFF_ALARM_START = 15; // minutes
|
||||
private static final int CONNECT_BACKOFF_ALARM_MAX = 60; // minutes
|
||||
private static final long CONNECT_BACKOFF_GRACE = 2 * 60 * 1000L; // milliseconds
|
||||
|
|
Loading…
Reference in a new issue