Skip to content

Commit f71cac8

Browse files
committed
Increase default request timeout
1 parent 981392f commit f71cac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

listennotes/Http/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public function __construct( $strApiKey = '' )
3232
CURLOPT_RETURNTRANSFER => true, // return web page
3333
CURLOPT_HEADER => true, // don't return headers
3434
CURLOPT_FOLLOWLOCATION => true, // follow redirects
35-
CURLOPT_MAXREDIRS => 3, // stop after 10 redirects
35+
CURLOPT_MAXREDIRS => 3, // stop after 3 redirects
3636
CURLOPT_ENCODING => '', // handle compressed
3737
CURLOPT_USERAGENT => $this->_strUserAgent, // name of client
3838
CURLOPT_AUTOREFERER => true, // set referrer on redirect
3939
CURLOPT_CONNECTTIMEOUT => 10, // time-out on connect
40-
CURLOPT_TIMEOUT => 10, // time-out on response
40+
CURLOPT_TIMEOUT => 30, // time-out on response
4141
CURLINFO_HEADER_OUT => true, // headers sent on request
4242
);
4343
curl_setopt_array( $this->_curl, $arrOptions );

0 commit comments

Comments
 (0)