| 1 |
<testcase> |
| 2 |
<info> |
| 3 |
<keywords> |
| 4 |
TFTP |
| 5 |
TFTP RRQ |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
|
| 9 |
# |
| 10 |
# Server-side |
| 11 |
<reply> |
| 12 |
<servercmd> |
| 13 |
writedelay: 2 |
| 14 |
</servercmd> |
| 15 |
# ~1200 bytes (so that they don't fit in two 512 byte chunks) |
| 16 |
<data nocheck="yes"> |
| 17 |
012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 |
| 18 |
</data> |
| 19 |
</reply> |
| 20 |
|
| 21 |
# |
| 22 |
# Client-side |
| 23 |
<client> |
| 24 |
<server> |
| 25 |
tftp |
| 26 |
</server> |
| 27 |
<name> |
| 28 |
slow TFTP retrieve cancel due to -Y and -y |
| 29 |
</name> |
| 30 |
# if less than 1000 bytes/sec within 2 seconds, abort! |
| 31 |
<command> |
| 32 |
tftp://%HOSTIP:%TFTPPORT//1238 -Y1000 -y2 |
| 33 |
</command> |
| 34 |
</client> |
| 35 |
|
| 36 |
# |
| 37 |
# Verify pseudo protocol after the test has been "shot" |
| 38 |
<verify> |
| 39 |
<protocol> |
| 40 |
opcode: 1 |
| 41 |
mode: octet |
| 42 |
tsize: 0 |
| 43 |
blksize: 512 |
| 44 |
timeout: 6 |
| 45 |
filename: /1238 |
| 46 |
</protocol> |
| 47 |
# 28 = CURLE_OPERATION_TIMEDOUT |
| 48 |
<errorcode> |
| 49 |
28 |
| 50 |
</errorcode> |
| 51 |
</verify> |
| 52 |
</testcase> |