delete flow controllers for closed streams

fixes #177
This commit is contained in:
Lucas Clemente
2016-07-28 16:45:55 +02:00
parent 5a82b35ca8
commit 3a88a8cffa
6 changed files with 26 additions and 1 deletions

View File

@@ -40,6 +40,10 @@ func (m *mockFlowControlHandler) NewStream(streamID protocol.StreamID, contribut
panic("not implemented")
}
func (m *mockFlowControlHandler) RemoveStream(streamID protocol.StreamID) {
delete(m.sendWindowSizes, streamID)
}
func (m *mockFlowControlHandler) MaybeTriggerStreamWindowUpdate(streamID protocol.StreamID) (bool, protocol.ByteCount, error) {
return m.triggerStreamWindowUpdate, 0x1337, nil
}