Skip to content
Snippets Groups Projects
Commit d28411c3 authored by gsengun's avatar gsengun Committed by Daniel Stenberg
Browse files

FTP: CURLE_PARTIAL_FILE should not cause control connection to be closed

Test 161 updated accordingly
parent 2705af62
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
<testcase>
# Server-side
<info>
<keywords>
FTP
CURLE_PARTIAL_FILE
RETR
PASV
</keywords>
</info>
<reply>
<data>
1oooooooooooooooooooooooooooooooooooooooooo2
......@@ -25,6 +32,8 @@ ftp://%HOSTIP:%FTPPORT/161
# Verify data after the test has been "shot"
<verify>
# This gets QUIT sent because CURLE_PARTIAL_FILE does NOT mark the control
# connection as bad
<protocol>
USER anonymous
PASS ftp@example.com
......@@ -33,6 +42,7 @@ EPSV
TYPE I
SIZE 161
RETR 161
QUIT
</protocol>
<errorcode>
18
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment