浏览代码

remove net recv timeout

stanley-king 3 年之前
父节点
当前提交
074b6130b8
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      core/framework/function/http.php

+ 0 - 3
core/framework/function/http.php

@@ -23,7 +23,6 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
     curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);
     curl_setopt($ci, CURLOPT_HEADER, false);
     curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 60);
-    curl_setopt($ci, CURLOPT_TIMEOUT, 60);
     curl_setopt($ci, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
 
     $headers = (array) $extheaders;
@@ -90,7 +89,6 @@ function http_post_data($url, $body, $headers = array(),&$net_errno = 0)
     curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE);
     curl_setopt($ci, CURLOPT_URL, $url);
     curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 60);
-    curl_setopt($ci, CURLOPT_TIMEOUT, 60);
     curl_setopt($ci, CURLOPT_POST, TRUE);
 
     if (!empty($headers)) {
@@ -121,7 +119,6 @@ function https_request($url, $params = array(), $method = 'GET', $multi = false,
     curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);
     curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 2);
     curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 60);
-    curl_setopt($ci, CURLOPT_TIMEOUT, 60);
     curl_setopt($ci, CURLOPT_HEADER, false);
     $headers = (array) $extheaders;
     switch ($method)