* change timeout to 3 seconds.

This commit is contained in:
wangchunsheng
2012-07-20 06:02:42 +00:00
parent c164075712
commit 9d4feeb031
+1 -1
View File
@@ -138,7 +138,7 @@ class mailModel extends model
public function getConfigByDetectingSMTP($domain, $username, $port)
{
$host = 'smtp.' . $domain;
ini_set('default_socket_timeout', 1);
ini_set('default_socket_timeout', 3);
$connection = @fsockopen($host, $port);
if(!$connection) return false;
fclose($connection);