remove unused connectionStats counters from the Reno implementation

This commit is contained in:
Marten Seemann 2020-07-22 14:35:58 +07:00
parent c8255cbaf5
commit 74e32d6762
2 changed files with 0 additions and 14 deletions

View file

@ -21,7 +21,6 @@ const (
type cubicSender struct {
hybridSlowStart HybridSlowStart
rttStats *RTTStats
stats connectionStats
cubic *Cubic
pacer *pacer
clock Clock
@ -180,8 +179,6 @@ func (c *cubicSender) OnPacketLost(
// already sent should be treated as a single loss event, since it's expected.
if packetNumber <= c.largestSentAtLastCutback {
if c.lastCutbackExitedSlowstart {
c.stats.slowstartPacketsLost++
c.stats.slowstartBytesLost += lostBytes
if c.slowStartLargeReduction {
// Reduce congestion window by lost_bytes for every loss.
c.congestionWindow = utils.MaxByteCount(c.congestionWindow-lostBytes, c.minSlowStartExitWindow)
@ -191,9 +188,6 @@ func (c *cubicSender) OnPacketLost(
return
}
c.lastCutbackExitedSlowstart = c.InSlowStart()
if c.InSlowStart() {
c.stats.slowstartPacketsLost++
}
// TODO(chromium): Separate out all of slow start into a separate class.
if c.slowStartLargeReduction && c.InSlowStart() {

View file

@ -1,8 +0,0 @@
package congestion
import "github.com/lucas-clemente/quic-go/internal/protocol"
type connectionStats struct {
slowstartPacketsLost protocol.PacketNumber
slowstartBytesLost protocol.ByteCount
}