forked from quic-go/quic-go
make it possible to get the PTO with and without max_ack_delay
This commit is contained in:
@@ -99,7 +99,7 @@ func (a *updatableAEAD) rollKeys(now time.Time) {
|
||||
a.numRcvdWithCurrentKey = 0
|
||||
a.numSentWithCurrentKey = 0
|
||||
a.prevRcvAEAD = a.rcvAEAD
|
||||
a.prevRcvAEADExpiry = now.Add(3 * a.rttStats.PTO())
|
||||
a.prevRcvAEADExpiry = now.Add(3 * a.rttStats.PTO(true))
|
||||
a.rcvAEAD = a.nextRcvAEAD
|
||||
a.sendAEAD = a.nextSendAEAD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user