flush 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .TH FLUSH 5
  2. .SH NAME
  3. flush \- abort a message
  4. .SH SYNOPSIS
  5. .ta \w'\fLTflush 'u
  6. .IR size [4]
  7. .B Tflush
  8. .IR tag [2]
  9. .IR oldtag [2]
  10. .br
  11. .IR size [4]
  12. .B Rflush
  13. .IR tag [2]
  14. .SH DESCRIPTION
  15. When the response to a request is no longer needed, such as when
  16. a user interrupts a process doing a
  17. .IR read (2),
  18. a
  19. .B Tflush
  20. request is sent to the server to purge the pending response.
  21. The message being flushed is identified by
  22. .IR oldtag .
  23. The semantics of
  24. .B flush
  25. depends on messages arriving in order.
  26. .PP
  27. The server must answer the
  28. .B flush
  29. message immediately.
  30. If it recognizes
  31. .I oldtag
  32. as the tag of a pending transaction, it should abort any pending response
  33. and discard that tag.
  34. In either case, it should respond with an
  35. .B Rflush
  36. echoing the
  37. .I tag
  38. (not
  39. .IR oldtag )
  40. of the
  41. .B Tflush
  42. message.
  43. A
  44. .B Tflush
  45. can never be responded to by an
  46. .B Rerror
  47. message.
  48. .PP
  49. When the client sends a
  50. .BR Tflush ,
  51. it must wait to receive the corresponding
  52. .B Rflush
  53. before reusing
  54. .I oldtag
  55. for subsequent messages.
  56. If a response to the flushed request is received before the
  57. .BR Rflush ,
  58. the client must honor the response
  59. as if it had not been flushed,
  60. since the completed request may signify a state change in the server.
  61. For instance,
  62. .B Tcreate
  63. may have created a file and
  64. .B Twalk
  65. may have allocated a fid.
  66. If no response is received before the
  67. .BR Rflush ,
  68. the flushed transaction is considered to have been canceled,
  69. and should be treated as though it had never been sent.
  70. .PP
  71. Several exceptional conditions are handled correctly by the above specification:
  72. sending multiple flushes for a single tag,
  73. flushing after a transaction is completed,
  74. flushing a
  75. .BR Tflush ,
  76. and flushing an invalid tag.