CRM-17637 Reduce checktime out to 1s instead of 5 to avoide slowdown in remote servers
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 2 Dec 2015 01:35:38 +0000 (01:35 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 2 Dec 2015 01:35:38 +0000 (01:35 +0000)
CRM/Utils/VersionCheck.php

index e41f9ffaf21aac26c2b96c80e4b8bc8ee0dbba48..a7bc93aed8da3c46308b9e0b60c1fca91b6e3748 100644 (file)
@@ -36,7 +36,7 @@ class CRM_Utils_VersionCheck {
   const
     PINGBACK_URL = 'http://latest.civicrm.org/stable.php?format=json',
     // timeout for when the connection or the server is slow
-    CHECK_TIMEOUT = 5,
+    CHECK_TIMEOUT = 1,
     // relative to $civicrm_root
     LOCALFILE_NAME = 'civicrm-version.php',
     // relative to $config->uploadDir