2011-11-12 02:46:44 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
FTP
|
|
|
|
PORT
|
|
|
|
RETR
|
|
|
|
NODATACONN150
|
2018-03-15 15:21:26 +08:00
|
|
|
flaky
|
2023-03-10 14:46:50 +08:00
|
|
|
timeout
|
|
|
|
FAILURE
|
2011-11-12 02:46:44 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
some bytes
|
|
|
|
</data>
|
|
|
|
<servercmd>
|
|
|
|
NODATACONN150
|
|
|
|
</servercmd>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
ftp
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
FTP PORT download, no data conn and no transient negative reply
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
--max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P -
|
2011-11-12 02:46:44 +08:00
|
|
|
</command>
|
|
|
|
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strippart>
|
|
|
|
s/^EPRT \|1\|(.*)/EPRT \|1\|/
|
|
|
|
</strippart>
|
2013-01-17 19:59:23 +08:00
|
|
|
|
|
|
|
# This test doesn't send a QUIT because the main state machine in multi.c
|
|
|
|
# triggers the timeout and sets the CURLE_OPERATION_TIMEDOUT error (28) for
|
2018-09-10 03:29:39 +08:00
|
|
|
# which the FTP disconnect code generically has to assume could mean the
|
2013-01-17 19:59:23 +08:00
|
|
|
# control the connection and thus it cannot send any command.
|
2011-11-12 02:46:44 +08:00
|
|
|
<protocol>
|
|
|
|
USER anonymous
|
|
|
|
PASS ftp@example.com
|
|
|
|
PWD
|
|
|
|
EPRT |1|
|
|
|
|
TYPE I
|
2021-03-13 00:38:26 +08:00
|
|
|
SIZE %TESTNUMBER
|
|
|
|
RETR %TESTNUMBER
|
2011-11-12 02:46:44 +08:00
|
|
|
</protocol>
|
|
|
|
<errorcode>
|
2013-01-17 19:59:23 +08:00
|
|
|
28
|
2011-11-12 02:46:44 +08:00
|
|
|
</errorcode>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|