forked from quic-go/quic-go
Merge pull request #2937 from lucas-clemente/fix-bytes-in-flight-tracing-after-ack
fix logging of bytes_in_flight when receiving an ACK
This commit is contained in:
@@ -306,9 +306,6 @@ func (h *sentPacketHandler) ReceivedAck(ack *wire.AckFrame, encLevel protocol.En
|
|||||||
h.logger.Debugf("\tupdated RTT: %s (σ: %s)", h.rttStats.SmoothedRTT(), h.rttStats.MeanDeviation())
|
h.logger.Debugf("\tupdated RTT: %s (σ: %s)", h.rttStats.SmoothedRTT(), h.rttStats.MeanDeviation())
|
||||||
}
|
}
|
||||||
h.congestion.MaybeExitSlowStart()
|
h.congestion.MaybeExitSlowStart()
|
||||||
if h.tracer != nil {
|
|
||||||
h.tracer.UpdatedMetrics(h.rttStats, h.congestion.GetCongestionWindow(), h.bytesInFlight, h.packetsInFlight())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := h.detectLostPackets(rcvTime, encLevel); err != nil {
|
if err := h.detectLostPackets(rcvTime, encLevel); err != nil {
|
||||||
@@ -333,6 +330,10 @@ func (h *sentPacketHandler) ReceivedAck(ack *wire.AckFrame, encLevel protocol.En
|
|||||||
}
|
}
|
||||||
h.numProbesToSend = 0
|
h.numProbesToSend = 0
|
||||||
|
|
||||||
|
if h.tracer != nil {
|
||||||
|
h.tracer.UpdatedMetrics(h.rttStats, h.congestion.GetCongestionWindow(), h.bytesInFlight, h.packetsInFlight())
|
||||||
|
}
|
||||||
|
|
||||||
pnSpace.history.DeleteOldPackets(rcvTime)
|
pnSpace.history.DeleteOldPackets(rcvTime)
|
||||||
h.setLossDetectionTimer()
|
h.setLossDetectionTimer()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user