trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] branch quic-latest updated: Fix debug log format
Date Wed, 06 Dec 2017 08:04:46 GMT
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 3a1d008  Fix debug log format
3a1d008 is described below

commit 3a1d008ac2d4fb1b19ee4f3aea7a55f0cdf86971
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Wed Dec 6 17:04:21 2017 +0900

    Fix debug log format
---
 iocore/net/quic/QUICLossDetector.cc | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/iocore/net/quic/QUICLossDetector.cc b/iocore/net/quic/QUICLossDetector.cc
index 4a58690..ec19795 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -199,24 +199,21 @@ QUICLossDetector::_on_ack_received(const std::shared_ptr<const QUICAckFrame>
&ac
     this->_update_rtt(this->_latest_rtt);
   }
 
-  QUICLDDebug("Unacked packets %lu (handshake pkt %u, retransmittable %u, other %lu)", this->_sent_packets.size(),
-              this->_handshake_outstanding.load(), this->_retransmittable_outstanding.load(),
-              this->_sent_packets.size() - (this->_handshake_outstanding.load() + this->_retransmittable_outstanding.load()));
+  QUICLDDebug("Unacked packets %lu (retransmittable %u, includes %u handshake packets)",
this->_sent_packets.size(),
+              this->_retransmittable_outstanding.load(), this->_handshake_outstanding.load());
 
   // Find all newly acked packets.
   for (auto acked_packet_number : this->_determine_newly_acked_packets(*ack_frame)) {
     this->_on_packet_acked(acked_packet_number);
   }
 
-  QUICLDDebug("Unacked packets %lu (handshake pkt %u, retransmittable %u, other %lu)", this->_sent_packets.size(),
-              this->_handshake_outstanding.load(), this->_retransmittable_outstanding.load(),
-              this->_sent_packets.size() - (this->_handshake_outstanding.load() + this->_retransmittable_outstanding.load()));
+  QUICLDDebug("Unacked packets %lu (retransmittable %u, includes %u handshake packets)",
this->_sent_packets.size(),
+              this->_retransmittable_outstanding.load(), this->_handshake_outstanding.load());
 
   this->_detect_lost_packets(ack_frame->largest_acknowledged());
 
-  QUICLDDebug("Unacked packets %lu (handshake pkt %u, retransmittable %u, other %lu)", this->_sent_packets.size(),
-              this->_handshake_outstanding.load(), this->_retransmittable_outstanding.load(),
-              this->_sent_packets.size() - (this->_handshake_outstanding.load() + this->_retransmittable_outstanding.load()));
+  QUICLDDebug("Unacked packets %lu (retransmittable %u, includes %u handshake packets)",
this->_sent_packets.size(),
+              this->_retransmittable_outstanding.load(), this->_handshake_outstanding.load());
 
   this->_set_loss_detection_alarm();
 }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message