1
0
Fork 0

Optimized timeouts during network operations

This commit is contained in:
Michael 2017-02-01 00:15:37 +00:00
commit 7324a661f1
4 changed files with 148 additions and 95 deletions

View file

@ -141,6 +141,8 @@ function z_fetch_url($url,$binary = false, &$redirects = 0, $opts=array()) {
logger('fetch_url error fetching '.$url.': '.curl_error($ch), LOGGER_NORMAL);
}
$ret['errno'] = curl_errno($ch);
$base = $s;
$curl_info = @curl_getinfo($ch);