Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPierre Gordon <pierregordon@protonmail.com>2018-08-21 09:07:14 +0300
committerPierre Gordon <pierregordon@protonmail.com>2018-08-21 09:09:10 +0300
commit8f23585d71ca0791e45ec3da47a5e2e92456351a (patch)
tree800a8987751e0a8e3868a2f5e6e7491a3ea32f80 /lib
parentfe4d7791a156b59e006320bac65b2865ecd4e83f (diff)
Update IMAP & SMTP timeouts
Diffstat (limited to 'lib')
-rw-r--r--lib/IMAP/IMAPClientFactory.php2
-rw-r--r--lib/SMTP/SmtpClientFactory.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/IMAP/IMAPClientFactory.php b/lib/IMAP/IMAPClientFactory.php
index b1ea421c8..a54bd71b6 100644
--- a/lib/IMAP/IMAPClientFactory.php
+++ b/lib/IMAP/IMAPClientFactory.php
@@ -73,7 +73,7 @@ class IMAPClientFactory {
'hostspec' => $host,
'port' => $port,
'secure' => $sslMode,
- 'timeout' => (int)$this->config->getSystemValue('app.mail.imap.timeout', 20),
+ 'timeout' => (int)$this->config->getSystemValue('app.mail.imap.timeout', 5),
];
if ($this->cacheFactory->isAvailable()) {
$params['cache'] = [
diff --git a/lib/SMTP/SmtpClientFactory.php b/lib/SMTP/SmtpClientFactory.php
index 85b924843..f59fafbfd 100644
--- a/lib/SMTP/SmtpClientFactory.php
+++ b/lib/SMTP/SmtpClientFactory.php
@@ -76,7 +76,7 @@ class SmtpClientFactory {
'port' => $mailAccount->getOutboundPort(),
'username' => $mailAccount->getOutboundUser(),
'secure' => $security === 'none' ? false : $security,
- 'timeout' => (int)$this->config->getSystemValue('app.mail.smtp.timeout', 2)
+ 'timeout' => (int)$this->config->getSystemValue('app.mail.smtp.timeout', 5)
];
if ($this->config->getSystemValue('debug', false)) {
$params['debug'] = $this->config->getSystemValue('datadirectory') . '/horde_smtp.log';