set the ACK frame delay time when generating the frame

This commit is contained in:
Marten Seemann
2018-04-30 21:50:33 +09:00
parent 2127e2f1de
commit ee968aff67
6 changed files with 19 additions and 10 deletions

View File

@@ -16,11 +16,7 @@ const ackDelayExponent = 3
// An AckFrame is an ACK frame
type AckFrame struct {
AckRanges []AckRange // has to be ordered. The highest ACK range goes first, the lowest ACK range goes last
// time when the LargestAcked was receiveid
// this field will not be set for received ACKs frames
PacketReceivedTime time.Time
DelayTime time.Duration
DelayTime time.Duration
}
// parseAckFrame reads an ACK frame