implement basic connection level flow control

fixes #39
This commit is contained in:
Marten Seemann
2016-05-18 17:30:08 +07:00
parent 7105b37f91
commit f147ebc9bb
11 changed files with 319 additions and 41 deletions

View File

@@ -15,13 +15,7 @@ type BlockedFrame struct {
//Write writes a BlockedFrame frame
func (f *BlockedFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error {
b.WriteByte(0x05)
if f.StreamID == 0 {
panic("Writing of connection level BlockedFrames not yet implemented.")
}
utils.WriteUint32(b, uint32(f.StreamID))
return nil
}