From 2e88d8b9aa54133f6bf50faa94175c3dae6e2ad2 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 8 Aug 1997 23:36:54 +0000 Subject: (ftp_conn_rmt_transfer): If we get an error, close SRC_CONN instead of aborting it, to avoid problems with some ftp servers. --- libftpconn/rmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libftpconn') 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); } -- cgit v1.2.3