It might also be considered to use the CURLOPT_CONNECTTIMEOUT_MS for the connection wait time setting as well