add method to FlowControlManager to tell if Stream contribues to connection-level flow control

This commit is contained in:
Marten Seemann
2016-06-16 15:56:34 +07:00
committed by Lucas Clemente
parent ef9baf67fc
commit 1b732a4afa
4 changed files with 36 additions and 0 deletions

View File

@@ -29,4 +29,5 @@ type FlowControlManager interface {
SendWindowSize(streamID protocol.StreamID) (protocol.ByteCount, error)
RemainingConnectionWindowSize() protocol.ByteCount
UpdateWindow(streamID protocol.StreamID, offset protocol.ByteCount) (bool, error)
StreamContributesToConnectionFlowControl(streamID protocol.StreamID) (bool, error)
}