diff --git a/ftpfs.c b/ftpfs.c index 866a2a4..3d26ff4 100644 --- a/ftpfs.c +++ b/ftpfs.c @@ -1580,6 +1580,7 @@ static void set_common_curl_stuff(CURL* easy) { } curl_easy_setopt_or_die(easy, CURLOPT_CONNECTTIMEOUT, ftpfs.connect_timeout); + curl_easy_setopt_or_die(easy, CURLOPT_TIMEOUT, ftpfs.connect_timeout); /* CURLFTPSSL_CONTROL and CURLFTPSSL_ALL should make the connection fail if * the server doesn't support SSL but libcurl only honors this beginning