1<testcase>
2<info>
3<keywords>
4FTP
5EPSV
6RETR
7timeout
8FAILURE
9</keywords>
10</info>
11
12# Server-side
13<reply>
14# Overload some standard FTP responses to make them shorter and faster
15# to avoid wasting time waiting for the data phase to start
16<servercmd>
17SLOWDOWN
18REPLY USER 331 OK
19REPLY PASS 230 OK
20REPLY PWD 257 "/"
21REPLY TYPE 200 OK
22</servercmd>
23<data nocheck="yes">
24Long chunk of data that couldn't possibly be sent in the time allotted.
25Long chunk of data that couldn't possibly be sent in the time allotted.
26Long chunk of data that couldn't possibly be sent in the time allotted.
27Long chunk of data that couldn't possibly be sent in the time allotted.
28Long chunk of data that couldn't possibly be sent in the time allotted.
29Long chunk of data that couldn't possibly be sent in the time allotted.
30Long chunk of data that couldn't possibly be sent in the time allotted.
31Long chunk of data that couldn't possibly be sent in the time allotted.
32Long chunk of data that couldn't possibly be sent in the time allotted.
33Long chunk of data that couldn't possibly be sent in the time allotted.
34Long chunk of data that couldn't possibly be sent in the time allotted.
35Long chunk of data that couldn't possibly be sent in the time allotted.
36Long chunk of data that couldn't possibly be sent in the time allotted.
37Long chunk of data that couldn't possibly be sent in the time allotted.
38Long chunk of data that couldn't possibly be sent in the time allotted.
39Long chunk of data that couldn't possibly be sent in the time allotted.
40Long chunk of data that couldn't possibly be sent in the time allotted.
41Long chunk of data that couldn't possibly be sent in the time allotted.
42Long chunk of data that couldn't possibly be sent in the time allotted.
43Long chunk of data that couldn't possibly be sent in the time allotted.
44Long chunk of data that couldn't possibly be sent in the time allotted.
45Long chunk of data that couldn't possibly be sent in the time allotted.
46Long chunk of data that couldn't possibly be sent in the time allotted.
47Long chunk of data that couldn't possibly be sent in the time allotted.
48Long chunk of data that couldn't possibly be sent in the time allotted.
49Long chunk of data that couldn't possibly be sent in the time allotted.
50Long chunk of data that couldn't possibly be sent in the time allotted.
51Long chunk of data that couldn't possibly be sent in the time allotted.
52Long chunk of data that couldn't possibly be sent in the time allotted.
53Long chunk of data that couldn't possibly be sent in the time allotted.
54Long chunk of data that couldn't possibly be sent in the time allotted.
55Long chunk of data that couldn't possibly be sent in the time allotted.
56Long chunk of data that couldn't possibly be sent in the time allotted.
57Long chunk of data that couldn't possibly be sent in the time allotted.
58Long chunk of data that couldn't possibly be sent in the time allotted.
59Long chunk of data that couldn't possibly be sent in the time allotted.
60Long chunk of data that couldn't possibly be sent in the time allotted.
61Long chunk of data that couldn't possibly be sent in the time allotted.
62Long chunk of data that couldn't possibly be sent in the time allotted.
63Long chunk of data that couldn't possibly be sent in the time allotted.
64Long chunk of data that couldn't possibly be sent in the time allotted.
65Long chunk of data that couldn't possibly be sent in the time allotted.
66Long chunk of data that couldn't possibly be sent in the time allotted.
67Long chunk of data that couldn't possibly be sent in the time allotted.
68Long chunk of data that couldn't possibly be sent in the time allotted.
69Long chunk of data that couldn't possibly be sent in the time allotted.
70Long chunk of data that couldn't possibly be sent in the time allotted.
71Long chunk of data that couldn't possibly be sent in the time allotted.
72Long chunk of data that couldn't possibly be sent in the time allotted.
73Long chunk of data that couldn't possibly be sent in the time allotted.
74</data>
75</reply>
76
77# Client-side
78<client>
79<server>
80ftp
81</server>
82<killserver>
83ftp
84</killserver>
85 <name>
86FTP download with strict timeout and slow data transfer
87 </name>
88 <command timeout="1">
89ftp://%HOSTIP:%FTPPORT/1086 -m 7
90</command>
91</client>
92
93# Verify data after the test has been "shot"
94<verify>
95# 28 is CURLE_OPERATION_TIMEDOUT
96<errorcode>
9728
98</errorcode>
99<protocol>
100USER anonymous
101PASS ftp@example.com
102PWD
103EPSV
104TYPE I
105SIZE 1086
106RETR 1086
107</protocol>
108</verify>
109</testcase>
110