From a413f331263e8818229f20266f3a5bf6fac3ad4d Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 31 Mar 2024 22:13:33 +0000 Subject: [PATCH] apply --connect-timeout option to all operations, not just connect sure, it should be renamed, but i'm not trying to be general. --- ftpfs.c | 1 + 1 file changed, 1 insertion(+) 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