1CURLOPT_ACCEPTTIMEOUT_MS(3)curl_easy_setopt optionsCURLOPT_ACCEPTTIMEOUT_MS(3)
2
3
4

NAME

6       CURLOPT_ACCEPTTIMEOUT_MS  -  timeout  waiting for FTP server to connect
7       back
8

SYNOPSIS

10       #include <curl/curl.h>
11
12       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ACCEPTTIMEOUT_MS,  long
13       ms);
14

DESCRIPTION

16       Pass  a long telling libcurl the maximum number of milliseconds to wait
17       for a server to connect back to libcurl when an active  FTP  connection
18       is used.
19

DEFAULT

21       60000 milliseconds
22

PROTOCOLS

24       FTP
25

EXAMPLE

27       CURL *curl = curl_easy_init();
28       if(curl) {
29         curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/path/file");
30
31         /* wait no more than 5 seconds for FTP server responses */
32         curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, 5000L);
33
34         curl_easy_perform(curl);
35       }
36

AVAILABILITY

38       Added in 7.24.0
39

RETURN VALUE

41       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
42       if not.
43

SEE ALSO

45       CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3),
46
47
48
49libcurl 7.61.1                  March 06, 2016     CURLOPT_ACCEPTTIMEOUT_MS(3)
Impressum