Skip to content

Commit

Permalink
refine request and connect timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tingtao.suntt committed Nov 21, 2017
1 parent fe13011 commit d58aea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aliyun/Log/requestcore.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ public function prep_request()
curl_setopt($curl_handle, CURLOPT_MAXREDIRS, 5);
curl_setopt($curl_handle, CURLOPT_HEADER, true);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 5184000);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 120);
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 20);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl_handle, CURLOPT_NOSIGNAL, true);
curl_setopt($curl_handle, CURLOPT_REFERER, $this->request_url);
curl_setopt($curl_handle, CURLOPT_USERAGENT, $this->useragent);
Expand Down

0 comments on commit d58aea4

Please sign in to comment.