Skip to main content

Module stream

Module stream 

Source
Expand description

ClientStream represents a client-side connection.

On Drop, will close the connection on write-side, the response reader coroutine not exit until all the ClientTask have a response or after task_timeout is reached.

The user sends packets in sequence, with a throttler controlling the IO depth of in-flight packets. An internal timer then registers the request through a channel, and when the response is received, it can optionally notify the user through a user-defined channel or another mechanism.

Structsยง

ClientStream
ClientStream represents a client-side connection.