Should be used to write a ReqPacket on the transport.
Checks an association between a request and a ReplyHeader
Checks an association between a request and a ReplyHeader
expected request details
freshly decoded ReplyHeader
Fails the dispatcher, stops sending ping, invalids the connection.
Fails the dispatcher, stops sending ping, invalids the connection.
the failure cause
Fails all pending responses with an exception.
Fails all pending responses with an exception.
the failure cause
Reads a Buf from the transport and decodes it.
Reads a Buf from the transport and decodes it.
Future.Done when reading and decoding is done
Reads from the transport until the session is closed or the connection is invalid.
Reads from the transport until the session is closed or the connection is invalid.
Future.Done when reading is stopped
We make decisions depending on request type, a request record of the Packet is added to the queue, then the packet is finally written to the transport.
We make decisions depending on request type, a request record of the Packet is added to the queue, then the packet is finally written to the transport.
the request to send
a Future[Unit] when the request is finally written