implement writing of ACK frames containing ECN counts

This commit is contained in:
Marten Seemann 2020-08-10 12:20:31 +07:00
parent 1914e5f100
commit 13fa0bcdd1
7 changed files with 95 additions and 14 deletions

View file

@ -115,6 +115,13 @@ func getFrames() []wire.Frame {
AckRanges: getAckRanges(300),
DelayTime: time.Duration(getRandomNumber()),
},
&wire.AckFrame{
AckRanges: getAckRanges(3),
DelayTime: time.Duration(getRandomNumber()),
ECT0: getRandomNumber(),
ECT1: getRandomNumber(),
ECNCE: getRandomNumber(),
},
&wire.PingFrame{},
&wire.ResetStreamFrame{
StreamID: protocol.StreamID(getRandomNumber()),