Enabled connection pool debugging

This commit is contained in:
M66B 2018-09-11 16:29:04 +00:00
parent e42d1da65a
commit 8619da79b5
1 changed files with 3 additions and 0 deletions

View File

@ -78,8 +78,11 @@ public class MessageHelper {
props.put("mail.imaps.timeout", Integer.toString(NETWORK_TIMEOUT));
props.put("mail.imaps.writetimeout", Integer.toString(NETWORK_TIMEOUT)); // one thread overhead
props.put("mail.imaps.connectionpool.debug", "true");
props.put("mail.imaps.connectionpooltimeout", Integer.toString(3 * 60 * 1000)); // default: 45 sec
// "mail.imaps.finalizecleanclose"
// https://tools.ietf.org/html/rfc4978
// https://docs.oracle.com/javase/8/docs/api/java/util/zip/Deflater.html
if (prefs.getBoolean("compress", true)) {