Skip to main content

Module goaway

Module goaway 

Source
Expand description

GOAWAY, the graceful drain signal.

A session sends its own Goaway with Session::goaway, at most once, and observes the peer’s on the Consumer from Session::draining.

Draining works the same on a version with no GOAWAY message: the deadline is the sender’s own timer, so it force-closes on schedule whether or not the peer could be told why. Callers do not branch on the negotiated version.

Following the redirect is the caller’s job. moq_tokio::Connection implements it for native clients.

Structs§

Consumer
Observes the peer’s GOAWAY.
Goaway
A GOAWAY: the sender intends to close the session soon and the peer should migrate its subscriptions elsewhere.