From 2903a5c0500210f0a3934352fe29217b2b8e1dbf Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 6 Nov 2008 00:13:18 +0000 Subject: Added test 1086 to test a timeout the occurs during an FTP data transfer. --- tests/data/Makefile.am | 2 +- tests/data/test1086 | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1086 (limited to 'tests') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 4085a01e2..beb3a5c57 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -59,7 +59,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1064 test1065 test1066 test1067 test1068 test1069 test1070 test1071 \ test1072 test1073 test1074 test1075 test1076 test1077 test1078 test1079 \ test1080 test1081 test1082 test1083 test1084 test1085 test633 test634 \ - test635 test636 test637 test558 test559 + test635 test636 test637 test558 test559 test1086 filecheck: @mkdir test-place; \ diff --git a/tests/data/test1086 b/tests/data/test1086 new file mode 100644 index 000000000..2066d2792 --- /dev/null +++ b/tests/data/test1086 @@ -0,0 +1,77 @@ + + + +FTP +EPSV +RETR +timeout +FAILURE + + + +# Server-side + + +SLOWDOWN + + +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. + + + +# Client-side + + +ftp + + +ftp + + +FTP download with strict timeout and slow data transfer + + +ftp://%HOSTIP:%FTPPORT/1086 -m 6 + + + +# Verify data after the test has been "shot" + +# 28 is CURLE_OPERATION_TIMEDOUT + +28 + + +USER anonymous +PASS ftp@example.com +PWD +EPSV +TYPE I +SIZE 1086 +RETR 1086 + + + -- cgit v1.2.3