diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-11-06 00:13:18 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-11-06 00:13:18 +0000 |
commit | 2903a5c0500210f0a3934352fe29217b2b8e1dbf (patch) | |
tree | 30be303c546db51e20866407ef5219f4dfb243d3 /tests/data/test1086 | |
parent | 4d50b9f1f1aa95e8081bf4d6dbb515ea3170c709 (diff) | |
download | curl-2903a5c0500210f0a3934352fe29217b2b8e1dbf.tar.gz |
Added test 1086 to test a timeout the occurs during an FTP data transfer.
Diffstat (limited to 'tests/data/test1086')
-rw-r--r-- | tests/data/test1086 | 77 |
1 files changed, 77 insertions, 0 deletions
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 @@ +<testcase> +<info> +<keywords> +FTP +EPSV +RETR +timeout +FAILURE +</keywords> +</info> + +# Server-side +<reply> +<servercmd> +SLOWDOWN +</servercmd> +<data nocheck="yes"> +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. +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<killserver> +ftp +</killserver> + <name> +FTP download with strict timeout and slow data transfer + </name> + <command timeout="1"> +ftp://%HOSTIP:%FTPPORT/1086 -m 6 +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +# 28 is CURLE_OPERATION_TIMEDOUT +<errorcode> +28 +</errorcode> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE I
+SIZE 1086
+RETR 1086
+</protocol> +</verify> +</testcase> |