implement a StreamFrame Queue to handle high priority StreamFrames for retransmission

fixes #21
This commit is contained in:
Marten Seemann
2016-04-27 21:05:58 +07:00
parent c641e24e8c
commit 6a7f331269
4 changed files with 190 additions and 12 deletions

View File

@@ -262,7 +262,7 @@ func (s *Session) sendPacket() error {
controlFrames = append(controlFrames, retransmitPacket.GetControlFramesForRetransmission()...)
for _, streamFrame := range retransmitPacket.GetStreamFramesForRetransmission() {
// TODO: add these stream frames with a higher priority
s.packer.AddStreamFrame(*streamFrame)
s.packer.AddHighPrioStreamFrame(*streamFrame)
}
}