Hello,

Attached small patch prevents control connection to be closed when
CURLE_PARTIAL_FILE error is encountered.

Thanks

-- 
it is twice as difficult to debug a program as to write it. Therefore, if
you put all of your creativity and effort into writing the program, you are
not smart enough to debug it.
From 78f3f765a623b9410a8f28752eddf82316cd2fdf Mon Sep 17 00:00:00 2001
From: gsengun <[email protected]>
Date: Sat, 7 Jan 2012 23:13:57 +0200
Subject: [PATCH] CURLE_PARTIAL_FILE should not cause FTP control connection to be closed

---
 lib/ftp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/ftp.c b/lib/ftp.c
index 8f4ac1e..63a0463 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3287,6 +3287,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
   case CURLE_FTP_ACCEPT_TIMEOUT:
   case CURLE_FTP_COULDNT_SET_TYPE:
   case CURLE_FTP_COULDNT_RETR_FILE:
+  case CURLE_PARTIAL_FILE:
   case CURLE_UPLOAD_FAILED:
   case CURLE_REMOTE_ACCESS_DENIED:
   case CURLE_FILESIZE_EXCEEDED:
-- 
1.7.3.4

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to