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: 1 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 filename: /1238 42 mode: octet 43 </protocol> 44 # 28 = CURLE_OPERATION_TIMEDOUT 45 <errorcode> 46 28 47 </errorcode> 48 </verify> 49 </testcase> 50