change the type byte of the IETF ACK frame from 0x0e to 0x0d

This commit is contained in:
Marten Seemann
2018-04-22 18:05:43 +09:00
parent c1d8c8940e
commit cd359ec5e0
4 changed files with 25 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ func (f *AckFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error
largestAcked := f.AckRanges[0].Largest
lowestInFirstRange := f.AckRanges[0].Smallest
b.WriteByte(0xe)
b.WriteByte(0x0d)
utils.WriteVarInt(b, uint64(largestAcked))
utils.WriteVarInt(b, encodeAckDelay(f.DelayTime))