add BLOCKED frame management to streamFramer

ref #211
This commit is contained in:
Lucas Clemente
2016-07-09 14:29:56 +02:00
parent d547034ed3
commit bdbf8d3ebe
3 changed files with 83 additions and 35 deletions

View File

@@ -75,6 +75,12 @@ func (m *mockFlowControlHandler) UpdateHighestReceived(streamID protocol.StreamI
func (m *mockFlowControlHandler) AddBytesSent(streamID protocol.StreamID, n protocol.ByteCount) error {
m.bytesSent += n
for _, s := range m.streamsContributing {
if s == streamID {
m.remainingConnectionWindowSize -= n
return nil
}
}
return nil
}