implement qlogging of the congestion_state_updated event

This commit is contained in:
Marten Seemann
2020-07-22 15:19:45 +07:00
parent 0b7efe10d1
commit 5cf72e2f34
5 changed files with 51 additions and 1 deletions

View File

@@ -316,7 +316,11 @@ func (t *connectionTracer) LostPacket(encLevel protocol.EncryptionLevel, pn prot
t.mutex.Unlock()
}
func (t *connectionTracer) UpdatedCongestionState(logging.CongestionState) {}
func (t *connectionTracer) UpdatedCongestionState(state logging.CongestionState) {
t.mutex.Lock()
t.recordEvent(time.Now(), &eventCongestionStateUpdated{state: congestionState(state)})
t.mutex.Unlock()
}
func (t *connectionTracer) UpdatedPTOCount(value uint32) {
t.mutex.Lock()