From 48f6bd9fea3537ce654618755b2364bdff838e99 Mon Sep 17 00:00:00 2001 From: Hangjun Ye Date: Thu, 24 Apr 2014 04:59:09 -0700 Subject: [PATCH] Changed default timeout of smtp from 10s to 60s. Summary: Our smtp server responded slowly sometimes and reached the timeout, but actually it had sent the email successfully. The mta then retried and sent duplicated emails. So changed to a bigger default value. Test Plan: Tested in our deployed and it worked Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D8852 --- externals/phpmailer/class.phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/phpmailer/class.phpmailer.php b/externals/phpmailer/class.phpmailer.php index f616c76fef..5ddbddc144 100644 --- a/externals/phpmailer/class.phpmailer.php +++ b/externals/phpmailer/class.phpmailer.php @@ -221,7 +221,7 @@ class PHPMailer { * This function will not work with the win32 version. * @var int */ - public $Timeout = 10; + public $Timeout = 60; /** * Sets SMTP class debugging on or off.