test1238 2.3 KB

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