xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | FTP |
| 5 | PORT |
| 6 | RETR |
| 7 | NODATACONN150 |
| 8 | flaky |
| 9 | </keywords> |
| 10 | </info> |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data nocheck="yes"> |
| 14 | some bytes |
| 15 | </data> |
| 16 | <servercmd> |
| 17 | NODATACONN150 |
| 18 | </servercmd> |
| 19 | </reply> |
| 20 | |
| 21 | # Client-side |
| 22 | <client> |
| 23 | <server> |
| 24 | ftp |
| 25 | </server> |
| 26 | <name> |
| 27 | FTP PORT download, no data conn and no transient negative reply |
| 28 | </name> |
| 29 | <command> |
| 30 | --max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P - |
| 31 | </command> |
| 32 | |
| 33 | </client> |
| 34 | |
| 35 | # Verify data after the test has been "shot" |
| 36 | <verify> |
| 37 | <strippart> |
| 38 | s/^EPRT \|1\|(.*)/EPRT \|1\|/ |
| 39 | </strippart> |
| 40 | |
| 41 | # This test doesn't send a QUIT because the main state machine in multi.c |
| 42 | # triggers the timeout and sets the CURLE_OPERATION_TIMEDOUT error (28) for |
| 43 | # which the FTP disconnect code generically has to assume could mean the |
| 44 | # control the connection and thus it cannot send any command. |
| 45 | <protocol> |
| 46 | USER anonymous
|
| 47 | PASS ftp@example.com
|
| 48 | PWD
|
| 49 | EPRT |1| |
| 50 | TYPE I
|
| 51 | SIZE %TESTNUMBER
|
| 52 | RETR %TESTNUMBER
|
| 53 | </protocol> |
| 54 | <errorcode> |
| 55 | 28 |
| 56 | </errorcode> |
| 57 | </verify> |
| 58 | </testcase> |