Propose adding
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
curl_setopt($ch, CURLOPT_TIMEOUT, 400); //timeout in seconds
to the $options array so we can alter the timeouts.
Trying to prevent a hanging REST API call.
Propose adding
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
curl_setopt($ch, CURLOPT_TIMEOUT, 400); //timeout in seconds
to the $options array so we can alter the timeouts.
Trying to prevent a hanging REST API call.
Comments
Comment #2
klabowterman commented