test1238 (2327B)
1 <testcase> 2 <info> 3 <keywords> 4 TFTP 5 TFTP RRQ 6 timeout 7 FAILURE 8 DELAY 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <servercmd> 16 writedelay: 2000 17 </servercmd> 18 # ~1200 bytes (so that they don't fit in two 512 byte chunks) 19 <data nocheck="yes"> 20 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 21 </data> 22 </reply> 23 24 # 25 # Client-side 26 <client> 27 <server> 28 tftp 29 </server> 30 # Always kill the TFTP server to not affect following tests, due 31 # to this test potentially keeping the TFTP server busy waiting 32 # for another 5 seconds after this test has already terminated. 33 # On some platforms and CI not enough time passes between this 34 # test and the next tests 1242 and 1243, causing them to fail. 35 <killserver> 36 tftp 37 </killserver> 38 <name> 39 slow TFTP retrieve cancel due to -Y and -y 40 </name> 41 # if less than 1000 bytes/sec within 2 seconds, abort! 42 <command> 43 tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER -Y1000 -y2 44 </command> 45 </client> 46 47 # 48 # Verify pseudo protocol after the test has been "shot" 49 <verify> 50 <strip> 51 ^timeout = [5-6]$ 52 </strip> 53 <protocol> 54 opcode = 1 55 mode = octet 56 tsize = 0 57 blksize = 512 58 filename = /%TESTNUMBER 59 </protocol> 60 # 28 = CURLE_OPERATION_TIMEDOUT 61 <errorcode> 62 28 63 </errorcode> 64 </verify> 65 </testcase>