when client.windowProcessed > windowSize div 2 signal task to send update. Task will send the update based on client.windowProcessed, set client.windowPending -= client.windowProcessed, and reset client.windowProcessed before await.
for closed stream, dispatcher add to client.windowProcessed
when a stream calls close, add stream.windowPending - stream.windowProcessed to client.windowProcessed and signal the task.
throw flow_control_error when client.windowPending > windowSize
Rework the stream flow-control based on stream.windowPending and stream.windowProcessed.
Connection flow-control
client.windowProcessed > windowSize div 2
signal task to send update. Task will send the update based onclient.windowProcessed
, setclient.windowPending -= client.windowProcessed
, and resetclient.windowProcessed
before await.stream.windowPending - stream.windowProcessed
to client.windowProcessed and signal the task.client.windowPending > windowSize
Rework the stream flow-control based on stream.windowPending and stream.windowProcessed.