Module write
Expand description
Write-side helpers: the cancellation-safe write arm and the teardown delivery/flush.
Enumsยง
- Wrote ๐
- One outcome of
write_or_flush.
Constantsยง
- GRACEFUL_
FLUSH_ ๐TIMEOUT - Upper bound on the teardown flush of a graceful DISCONNECT, so shutdown cannot hang on a peer that stopped reading.
Functionsยง
- deliver_
and_ ๐flush - Delivers buffered messages to the application (they are acknowledged and owed to it) and, on a graceful close, flushes any remaining outbound bytes.
- write_
or_ ๐flush - Writes one chunk of
pendingtowrite, or flushes whenpendingis empty.