summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-08 23:36:54 +0000
committerMiles Bader <miles@gnu.org>1997-08-08 23:36:54 +0000
commit2e88d8b9aa54133f6bf50faa94175c3dae6e2ad2 (patch)
tree215b74c6cb7339945d1fcb1a96c22eeb263c0bef /libftpconn
parent4994c9cce8d4f7f23e48155200f8097f3fbed25e (diff)
(ftp_conn_rmt_transfer):
If we get an error, close SRC_CONN instead of aborting it, to avoid problems with some ftp servers.
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/rmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libftpconn/rmt.c b/libftpconn/rmt.c
index d7865672..33fdeaf7 100644
--- a/libftpconn/rmt.c
+++ b/libftpconn/rmt.c
@@ -66,7 +66,9 @@ ftp_conn_rmt_transfer (struct ftp_conn *src_conn,
ftp_conn_poss_file_errs);
if (err)
- ftp_conn_abort (src_conn);
+ /* Ftp servers seem to hang trying to abort at this point, so
+ just close the connection entirely. */
+ ftp_conn_close (src_conn);
else
err = ftp_conn_finish_transfer (src_conn);
}