mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-14 16:10:39 +00:00
Enable write timeout again
This commit is contained in:
parent
7195603350
commit
fbab8a0a02
1 changed files with 2 additions and 2 deletions
|
@ -235,14 +235,14 @@ public class EmailService implements AutoCloseable {
|
|||
Log.i("Timeout=" + timeout);
|
||||
if (purpose == PURPOSE_SEARCH) {
|
||||
properties.put("mail." + protocol + ".connectiontimeout", Integer.toString(timeout));
|
||||
//properties.put("mail." + protocol + ".writetimeout", Integer.toString(SEARCH_TIMEOUT));
|
||||
properties.put("mail." + protocol + ".writetimeout", Integer.toString(SEARCH_TIMEOUT));
|
||||
properties.put("mail." + protocol + ".timeout", Integer.toString(SEARCH_TIMEOUT));
|
||||
} else {
|
||||
int factor = 2;
|
||||
if ("smtp".equals(protocol) || "smtps".equals(protocol))
|
||||
factor *= 2;
|
||||
properties.put("mail." + protocol + ".connectiontimeout", Integer.toString(timeout));
|
||||
//properties.put("mail." + protocol + ".writetimeout", Integer.toString(timeout * factor));
|
||||
properties.put("mail." + protocol + ".writetimeout", Integer.toString(timeout * factor));
|
||||
properties.put("mail." + protocol + ".timeout", Integer.toString(timeout * factor));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue