unify TLP and RTO

This doesn't yet implement the persistent congestion detection, since
the specification of that still is in flux.
This commit is contained in:
Marten Seemann
2018-12-20 16:10:20 +06:30
parent eaad3b2bdf
commit 77d48248ff
6 changed files with 82 additions and 245 deletions

View File

@@ -821,7 +821,7 @@ sendLoop:
// There will only be a new ACK after receiving new packets.
// SendAck is only returned when we're congestion limited, so we don't need to set the pacingt timer.
return s.maybeSendAckOnlyPacket()
case ackhandler.SendTLP, ackhandler.SendRTO:
case ackhandler.SendPTO:
if err := s.sendProbePacket(); err != nil {
return err
}