diff options
author | Barak Korren <[email protected]> | 2013-04-01 15:08:21 +0300 |
---|---|---|
committer | Barak Korren <[email protected]> | 2013-04-01 15:08:21 +0300 |
commit | 8401101d5051c4ccad140fc4b062fa9c780d06d9 (patch) | |
tree | 68e5506498a5205bcb3372e956d7fe04c8c18a15 /include/functions.php | |
parent | ec8d46b29d9fd7bfee9f6edb5365996c1a88473a (diff) |
Moved hard-coded fetch timeout values into config file to allow site-level tuning
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index b9c30c6ce..fa63c9baa 100644 --- a/include/functions.php +++ b/include/functions.php @@ -306,8 +306,8 @@ array("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $timestamp))); } - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : 15); - curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : 45); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : FILE_FETCH_CONNECT_TIMEOUT); + curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : FILE_FETCH_TIMEOUT); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode")); curl_setopt($ch, CURLOPT_MAXREDIRS, 20); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); |