FTP
EPSV
RETR
timeout
FAILURE
SLOWDOWNDATA
flaky
timing-dependent
# Server-side
SLOWDOWNDATA
REPLY welcome 220 Hey
REPLY USER 331 OK
REPLY PASS 230 OK
REPLY PWD 257 "/"
REPLY TYPE 200 OK
%repeat[50 x Long chunk of data that couldn't possibly be sent in the time allotted.%0a]%
# Client-side
ftp
ftp
FTP download with strict timeout and slow data transfer
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -m 5
# 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 %TESTNUMBER
RETR %TESTNUMBER