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