From 29b1357cd2f5449e4e5af1126c3d99e37dc1c061 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 5 Jul 2018 14:39:58 -0700 Subject: Make HTTP client timeout configurable --- app/constants.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/constants.php') diff --git a/app/constants.php b/app/constants.php index 9d9d0a0f..af26856f 100644 --- a/app/constants.php +++ b/app/constants.php @@ -142,6 +142,8 @@ defined('BRUTEFORCE_LOCKDOWN_DURATION') or define('BRUTEFORCE_LOCKDOWN_DURATION' defined('SESSION_DURATION') or define('SESSION_DURATION', 0); // HTTP Client +defined('HTTP_TIMEOUT') or define('HTTP_TIMEOUT', 10); +defined('HTTP_MAX_REDIRECTS') or define('HTTP_MAX_REDIRECTS', 3); defined('HTTP_PROXY_HOSTNAME') or define('HTTP_PROXY_HOSTNAME', ''); defined('HTTP_PROXY_PORT') or define('HTTP_PROXY_PORT', '3128'); defined('HTTP_PROXY_USERNAME') or define('HTTP_PROXY_USERNAME', ''); -- cgit v1.2.3