Skip to content

Commit

Permalink
Add default timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed May 26, 2017
1 parent 09a6074 commit 22e6941
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public function sendLifetimeSales()
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_exec($ch);

if(curl_errno($ch)){
Expand Down

0 comments on commit 22e6941

Please sign in to comment.