set CURLOPT_CONNECTTIMEOUT to 20 seconds and CURLOPT_TIMEOUT to 4 minutes