aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-04-17 00:45:33 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-04-17 00:45:33 +0000
commit09777a4fc2ed0f2b09447eb89fb8cd4b99278944 (patch)
tree6bacd3d36ad24891153d55d573d776ca25065ce9 /lib/ftp.c
parent03310713467b678812067b3edab82b23ed6b1c04 (diff)
Some trivial changes
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c7
1 files changed, 5 insertions, 2 deletions
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);