mirror of
https://github.com/curl/curl.git
synced 2025-09-13 15:42:39 +03:00
Tom Mattison's report found out, and this is the fix that should prevent
FTP from closing the connections a little too often!
This commit is contained in:
parent
414afe0935
commit
559dc503c2
|
@ -669,13 +669,14 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
|
||||||
return CURLE_FTP_WRITE_ERROR;
|
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
|
/* if we don't check, we can't re-use this connection as it leaves the
|
||||||
control connection in a weird status */
|
control connection in a weird status */
|
||||||
conn->bits.close = TRUE;
|
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? */
|
/* Send any post-transfer QUOTE strings? */
|
||||||
if(!result && data->set.postquote)
|
if(!result && data->set.postquote)
|
||||||
|
@ -1604,7 +1605,7 @@ CURLcode ftp_perform(struct connectdata *conn)
|
||||||
|
|
||||||
if(data->set.no_body)
|
if(data->set.no_body)
|
||||||
/* don't transfer the data */
|
/* don't transfer the data */
|
||||||
ftp->dont_check = TRUE;
|
;
|
||||||
/* Get us a second connection up and connected */
|
/* Get us a second connection up and connected */
|
||||||
else if(data->set.ftp_use_port) {
|
else if(data->set.ftp_use_port) {
|
||||||
/* We have chosen to use the PORT command */
|
/* We have chosen to use the PORT command */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user