From: Daniel Stenberg Date: Wed, 10 Nov 2010 14:36:42 +0000 (+0100) Subject: test1120: verify FTP response 421 X-Git-Tag: curl-7_21_3~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b20de019400edb864b4d649aabead85719350ea;p=thirdparty%2Fcurl.git test1120: verify FTP response 421 curl mustn't try to use the control connection after the 421 is received --- diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index d210d9404c..d4fa32abcb 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -68,7 +68,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1108 test1109 test1110 test1111 test1112 test129 test567 test568 \ test569 test570 test571 test572 test804 test805 test806 test807 test573 \ test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \ - test1203 test1117 test1118 test1119 + test1203 test1117 test1118 test1119 test1120 filecheck: @mkdir test-place; \ diff --git a/tests/data/test1120 b/tests/data/test1120 new file mode 100644 index 0000000000..ddec00a04c --- /dev/null +++ b/tests/data/test1120 @@ -0,0 +1,44 @@ + + + +FTP +PORT +RETR +421 + + +# Server-side + + +REPLY CWD 421 Timeout! + + + +# Client-side + + +ftp + + +FTP with 421 timeout response + + +ftp://%HOSTIP:%FTPPORT/a/path/1120 + + + +# Verify data after the test has been "shot" + +# Strip all valid kinds of PORT and EPRT that curl can send + +USER anonymous +PASS ftp@example.com +PWD +CWD a + +# CURLE_OPERATION_TIMEDOUT is 28 + +28 + + +