From 5a27218ea742ae942d51ac84d6221daf03901b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 24 Aug 2020 11:42:22 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index b8ac64b..9dd4af8 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -658,7 +658,7 @@ class HttpClient curl_setopt($ch, CURLOPT_TIMEOUT, 120);// 超时设置 curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, FALSE); -// curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); // 超时设置 + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); // 超时设置 curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);//返回内容 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// 跟踪重定向 // curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');