Browse Source

Increased network timeouts

main
M66B 6 years ago
parent
commit
f570911f8c
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      .idea/misc.xml
  2. +3
    -3
      app/src/main/java/eu/faircode/email/MessageHelper.java

+ 1
- 1
.idea/misc.xml View File

@ -30,7 +30,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">


+ 3
- 3
app/src/main/java/eu/faircode/email/MessageHelper.java View File

@ -72,9 +72,9 @@ public class MessageHelper {
props.put("mail.imaps.starttls.enable", "false"); props.put("mail.imaps.starttls.enable", "false");
// TODO: make timeouts configurable? // TODO: make timeouts configurable?
props.put("mail.imaps.connectiontimeout", "20000");
props.put("mail.imaps.timeout", "20000");
props.put("mail.imaps.writetimeout", "20000"); // one thread overhead
props.put("mail.imaps.connectiontimeout", "60000");
props.put("mail.imaps.timeout", "60000");
props.put("mail.imaps.writetimeout", "60000"); // one thread overhead
props.put("mail.imaps.connectionpooltimeout", Integer.toString(3 * 60 * 1000)); // default: 45 sec props.put("mail.imaps.connectionpooltimeout", Integer.toString(3 * 60 * 1000)); // default: 45 sec


Loading…
Cancel
Save