Skip to content

Commit

Permalink
Merge pull request #344 from 202ecommerce/bugfix/47032-curl-timeout
Browse files Browse the repository at this point in the history
refs #47032 curl timeout
  • Loading branch information
bogdan202 authored Jul 12, 2024
2 parents 1475aee + 85bd645 commit f0d11d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/API/Client/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ protected function getOptions(HttpRequestInterface $request)
$options[CURLOPT_RETURNTRANSFER] = true;
$options[CURLOPT_HEADER] = false;
$options[CURLOPT_SSLVERSION] = CURL_SSLVERSION_TLSv1_2;
$options[CURLOPT_CONNECTTIMEOUT] = 0;
$options[CURLOPT_TIMEOUT] = 10;

if (false === empty($request->getBody())) {
$options[CURLOPT_POSTFIELDS] = $request->getBody();
Expand Down

0 comments on commit f0d11d4

Please sign in to comment.