Skip to content

Commit

Permalink
Increase curl timeout (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalbeck authored Nov 4, 2022
1 parent adb2a3a commit 2b2bb4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Command/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function sendGetRequest(string $serverUrl, string $endpoint, array $he

curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 30);
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 60);
curl_setopt($curlHandle, CURLOPT_CONNECTTIMEOUT, 10);
$result = curl_exec($curlHandle);
$curlErrorCode = curl_errno($curlHandle);
Expand Down Expand Up @@ -190,7 +190,7 @@ protected function sendPostRequest(string $serverUrl, string $endpoint, array $p
curl_setopt($curlHandle, CURLOPT_POST, true);
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 30);
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 60);
curl_setopt($curlHandle, CURLOPT_CONNECTTIMEOUT, 10);
$result = curl_exec($curlHandle);
$curlErrorCode = curl_errno($curlHandle);
Expand Down

0 comments on commit 2b2bb4d

Please sign in to comment.