add a HasWindowUpdate method to the stream flow controller

This commit is contained in:
Marten Seemann
2017-12-21 17:06:38 +07:00
parent 8759fa2d8e
commit 15ab0ae443
5 changed files with 38 additions and 4 deletions

View File

@@ -20,6 +20,8 @@ type StreamFlowController interface {
// UpdateHighestReceived should be called when a new highest offset is received
// final has to be to true if this is the final offset of the stream, as contained in a STREAM frame with FIN bit, and the RST_STREAM frame
UpdateHighestReceived(offset protocol.ByteCount, final bool) error
// HasWindowUpdate says if it is necessary to update the window
HasWindowUpdate() bool
}
// The ConnectionFlowController is the flow controller for the connection.