xref: /curl/tests/data/test1238 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4TFTP
5TFTP RRQ
6timeout
7FAILURE
8DELAY
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<servercmd>
16writedelay: 2000
17</servercmd>
18# ~1200 bytes (so that they don't fit in two 512 byte chunks)
19<data nocheck="yes">
20012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27<server>
28tftp
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>
36tftp
37</killserver>
38<name>
39slow TFTP retrieve cancel due to -Y and -y
40</name>
41# if less than 1000 bytes/sec within 2 seconds, abort!
42<command>
43tftp://%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>
54opcode = 1
55mode = octet
56tsize = 0
57blksize = 512
58filename = /%TESTNUMBER
59</protocol>
60# 28 = CURLE_OPERATION_TIMEDOUT
61<errorcode>
6228
63</errorcode>
64</verify>
65</testcase>
66