Increased network timeouts

pull/125/head
M66B 6 years ago
parent fb634a8e4a
commit f570911f8c

@ -30,7 +30,7 @@
</value>
</option>
</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" />
</component>
<component name="ProjectType">

@ -72,9 +72,9 @@ public class MessageHelper {
props.put("mail.imaps.starttls.enable", "false");
// 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

Loading…
Cancel
Save