From 130fac6c16c4fb8a7eeec116adc479aad1e3273d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Dec 2011 20:55:54 +0100 Subject: timeleft_accept: ack global timeout, moved to ftp.c First off the timeout for accepting a server connect back must of course respect a global timeout. Then the timeleft function is only used by ftp code so it was moved to ftp.c and made static. --- lib/ftp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ftp.h') diff --git a/lib/ftp.h b/lib/ftp.h index 21e47374b..d359f28f3 100644 --- a/lib/ftp.h +++ b/lib/ftp.h @@ -156,4 +156,6 @@ struct ftp_conn { it */ }; +#define DEFAULT_ACCEPT_TIMEOUT 60000 /* milliseconds == one minute */ + #endif /* HEADER_CURL_FTP_H */ -- cgit v1.2.3