aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-13 22:22:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-13 22:22:59 +0000
commit559dc503c2cb7c36f24a3fe65350b47de87e6ba3 (patch)
treeb1b03cf4b60589cb88fc8f06f6df25fc9d77ea88 /lib/ftp.c
parent414afe0935c08271aab468abf7665bf93f2cf9d8 (diff)
Tom Mattison's report found out, and this is the fix that should prevent
FTP from closing the connections a little too often!
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 6cd387d0d..14f4269c2 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -669,13 +669,14 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
return CURLE_FTP_WRITE_ERROR;
}
}
- if(ftp->dont_check) {
+ if(ftp->dont_check)
/* if we don't check, we can't re-use this connection as it leaves the
control connection in a weird status */
conn->bits.close = TRUE;
- }
- conn->bits.resume_done = FALSE; /* clean this for next connection */
+ /* reset these for next connection */
+ conn->bits.resume_done = FALSE;
+ ftp->dont_check = FALSE;
/* Send any post-transfer QUOTE strings? */
if(!result && data->set.postquote)
@@ -1604,7 +1605,7 @@ CURLcode ftp_perform(struct connectdata *conn)
if(data->set.no_body)
/* don't transfer the data */
- ftp->dont_check = TRUE;
+ ;
/* Get us a second connection up and connected */
else if(data->set.ftp_use_port) {
/* We have chosen to use the PORT command */