I\'m running a curl request on an eXist database through php. The dataset is very large, and as a result, the database consistently takes a long amount of time to return an
Hmm, it looks to me like CURLOPT_TIMEOUT defines the amount of time that any cURL function is allowed to take to execute. I think you should actually be looking at CURLOPT_CONNECTTIMEOUT instead, since that tells cURL the maximum amount of time to wait for the connection to complete.