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.
This commit is contained in:
Daniel Stenberg
2011-12-20 20:55:54 +01:00
parent 6222ef8052
commit 130fac6c16
4 changed files with 42 additions and 35 deletions

View File

@@ -156,4 +156,6 @@ struct ftp_conn {
it */
};
#define DEFAULT_ACCEPT_TIMEOUT 60000 /* milliseconds == one minute */
#endif /* HEADER_CURL_FTP_H */