~/bend-docscommunity

src/net/flush.bend checks

raw source on the hub · import 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/net/flush.bend as Flush

3 imports
import Base
import ../lib/u64.bend as U
import ./limits.bend as N

Types

type Facts source · line 28 · raw

Data

type Act source · line 31 · raw

Data

Definitions

def Flush.half source · line 40 · raw

@+a:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64 -> 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64

def Flush.drained source · line 43 · raw

@+f:Facts -> @+blocked:Bool -> Act

def Flush.pressure source · line 48 · raw

@+f:Facts -> @+blocked:Bool -> @l:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/net/limits.Limits -> Act

def Flush.fatal source · line 56 · raw

@+f:Facts -> @l:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/net/limits.Limits -> Bool

def Flush.closing source · line 62 · raw

@f:Facts -> Bool

def Flush.pending source · line 67 · raw

@f:Facts -> 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64

def Flush.decide source · line 74 · raw

@+f:Facts -> @+blocked:Bool -> @+l:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/net/limits.Limits -> Act

What the flusher does on waking with facts f, the guest blocked or not, under the limits l.

def Flush.over source · line 82 · raw

@+pending:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64 -> @+total:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64 -> @l:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/net/limits.Limits -> Bool

A send the host queued past the limits: its connection's pending bytes over the hard limit (the guest sent on although it was blocked), or all connections' pending bytes over the wall. The host then drops what the connection holds and its flusher resets it (Facts.over).

def Flush.word source · line 90 · raw

@+ws:List<&2, U32> -> @k:Nat -> U32

The facts as the host answers them (Hvf.tcp_flush): [err, over, pending, total, idle (each hi, lo), closing, overdue, shut]; None for [] (the socket is gone) or a malformed answer.

def Flush.u64 source · line 93 · raw

@+ws:List<&2, U32> -> @+k:Nat -> 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64

def Flush.flag source · line 96 · raw

@+ws:List<&2, U32> -> @k:Nat -> Bool

def Flush.facts source · line 99 · raw

@+ws:List<&2, U32> -> Maybe<&2, Facts>