test1238 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. <info>
  3. <keywords>
  4. TFTP
  5. TFTP RRQ
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <servercmd>
  12. writedelay: 2
  13. </servercmd>
  14. # ~1200 bytes (so that they don't fit in two 512 byte chunks)
  15. <data nocheck="yes">
  16. 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
  17. </data>
  18. </reply>
  19. #
  20. # Client-side
  21. <client>
  22. <server>
  23. tftp
  24. </server>
  25. <name>
  26. slow TFTP retrieve cancel due to -Y and -y
  27. </name>
  28. # if less than 1000 bytes/sec within 2 seconds, abort!
  29. <command>
  30. tftp://%HOSTIP:%TFTPPORT//1238 -Y1000 -y2
  31. </command>
  32. </client>
  33. #
  34. # Verify pseudo protocol after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. opcode: 1
  38. mode: octet
  39. tsize: 0
  40. blksize: 512
  41. timeout: 6
  42. filename: /1238
  43. </protocol>
  44. # 28 = CURLE_OPERATION_TIMEDOUT
  45. <errorcode>
  46. 28
  47. </errorcode>
  48. </verify>
  49. </testcase>