add method to reset a stream at a byte offset to flow controller

ref #377
This commit is contained in:
Marten Seemann
2017-01-03 11:13:43 +07:00
parent fe9da30cb2
commit fb3f753c94
6 changed files with 115 additions and 9 deletions

View File

@@ -60,6 +60,10 @@ func (m *mockFlowControlHandler) AddBytesRead(streamID protocol.StreamID, n prot
return nil
}
func (m *mockFlowControlHandler) ResetStream(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {
panic("not implemented")
}
func (m *mockFlowControlHandler) UpdateHighestReceived(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {
m.highestReceivedForStream = streamID
m.highestReceived = byteOffset