Module Proto.Tflush

Tflush requests cancellation of a previous request. A server should cancel work on the request and respond with an Rflush message.The server should respond to a Tflush immediately and may only respond with an Rflush message. If oldtag represents an existing request, it should abort any pending work for that request and discard the tag.

type t
val size : t -> int

The size of this message in bytes. It is identical to the length of the underlying I/O vector but is also encoded in the first 4 bytes of the message.

val code : int

The op code for this message.

val tag : t -> Tag.t

An identifier for this transaction. All in-flight requests on a given connection must have unique tags.

val of_iovec : Iovec.t -> t

of_iovec verifies a message from an I/O vector. No copying is done, and of_iovec only performs bounds checks. Modifying the underlying I/O vector will change the results when accessing message fields.

val oldtag : t -> Tag.t

oldtag m is the tag of the request to cancel.

val alloc : Iovec.ring -> t
val commit : t -> tag:Tag.t -> oldtag:Tag.t -> int