From 09777a4fc2ed0f2b09447eb89fb8cd4b99278944 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 17 Apr 2008 00:45:33 +0000 Subject: Some trivial changes --- lib/ftp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index 769bc8b14..473fffb2f 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -110,6 +110,9 @@ #define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV #endif +/* Default response timeout in milliseconds */ +#define RESP_TIMEOUT (3600*1000) + #ifdef CURL_DISABLE_VERBOSE_STRINGS #define ftp_pasv_verbose(a,b,c,d) do { } while(0) #endif @@ -3053,7 +3056,7 @@ static CURLcode ftp_connect(struct connectdata *conn, /* We always support persistant connections on ftp */ conn->bits.close = FALSE; - ftpc->response_time = 3600000; /* set default response time-out */ + ftpc->response_time = RESP_TIMEOUT; /* set default response time-out */ #ifndef CURL_DISABLE_HTTP if(conn->bits.tunnel_proxy && conn->bits.httpproxy) { @@ -3230,7 +3233,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status, */ long old_time = ftpc->response_time; - ftpc->response_time = 60000; /* give it only a minute for now */ + ftpc->response_time = 60*1000; /* give it only a minute for now */ result = Curl_GetFTPResponse(&nread, conn, &ftpcode); -- cgit v1.2.3