Merge pull request #2613 from lucas-clemente/log-send-packet-last

log sent packets right before sending them out
This commit is contained in:
Marten Seemann 2020-06-22 14:28:37 +07:00 committed by GitHub
commit 3289d2ce38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1508,9 +1508,9 @@ func (s *session) sendPackedPacket(packet *packedPacket) {
if s.firstAckElicitingPacketAfterIdleSentTime.IsZero() && packet.IsAckEliciting() {
s.firstAckElicitingPacketAfterIdleSentTime = now
}
s.logPacket(now, packet)
s.sentPacketHandler.SentPacket(packet.ToAckHandlerPacket(time.Now(), s.retransmissionQueue))
s.connIDManager.SentPacket()
s.logPacket(now, packet)
s.sendQueue.Send(packet.buffer)
}