![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_TIMEOUT_MS - maximum time the transfer is allowed to complete SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TIMEOUT_MS, long timeout); DESCRIPTIONPass a long as parameter containing timeout - the maximum time in milliseconds that you allow the libcurl transfer operation to take. See CURLOPT_TIMEOUT(3) for details. DEFAULT0 (zero) which means it never times out during transfer. PROTOCOLSThis functionality affects all supported protocols EXAMPLEint main(void) { AVAILABILITYAdded in curl 7.16.2 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_CONNECTTIMEOUT(3), CURLOPT_LOW_SPEED_LIMIT(3), CURLOPT_TCP_KEEPALIVE(3), CURLOPT_TIMEOUT(3)
|