From ad96e460630b68699559a8b414b3f857da24f480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 11:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/Curl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Client/Curl.php b/HttpServer/Client/Curl.php index 41c52568..245688fb 100644 --- a/HttpServer/Client/Curl.php +++ b/HttpServer/Client/Curl.php @@ -105,8 +105,8 @@ class Curl extends ClientAbstracts */ private function do($resource, $path, $method) { - curl_setopt($resource, CURLOPT_TIMEOUT, $this->getTimeout()); // 超时设置 - curl_setopt($resource, CURLOPT_CONNECTTIMEOUT, $this->getConnectTimeout()); // 超时设置 +// curl_setopt($resource, CURLOPT_TIMEOUT, $this->getTimeout()); // 超时设置 +// curl_setopt($resource, CURLOPT_CONNECTTIMEOUT, $this->getConnectTimeout()); // 超时设置 curl_setopt($resource, CURLOPT_HEADER, true); curl_setopt($resource, CURLOPT_FAILONERROR, true);