Skip to content

Commit d58aea4

Browse files
author
tingtao.suntt
committed
refine request and connect timeout
1 parent fe13011 commit d58aea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Aliyun/Log/requestcore.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ public function prep_request()
610610
curl_setopt($curl_handle, CURLOPT_MAXREDIRS, 5);
611611
curl_setopt($curl_handle, CURLOPT_HEADER, true);
612612
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
613-
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 5184000);
614-
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 120);
613+
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 20);
614+
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 5);
615615
curl_setopt($curl_handle, CURLOPT_NOSIGNAL, true);
616616
curl_setopt($curl_handle, CURLOPT_REFERER, $this->request_url);
617617
curl_setopt($curl_handle, CURLOPT_USERAGENT, $this->useragent);

0 commit comments

Comments
 (0)