This is an automated email from the ASF dual-hosted git repository.

masaori 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 1521081  Print ACK frame info in debug log
1521081 is described below

commit 152108180a294c91e5d31ec7b7e2918e90701faa
Author: Masaori Koshiba <[email protected]>
AuthorDate: Wed Mar 28 11:24:33 2018 +0900

    Print ACK frame info in debug log
---
 iocore/net/quic/QUICLossDetector.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/iocore/net/quic/QUICLossDetector.cc 
b/iocore/net/quic/QUICLossDetector.cc
index 33d1097..0142b75 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -176,6 +176,11 @@ QUICLossDetector::_on_ack_received(const 
std::shared_ptr<const QUICAckFrame> &ac
 {
   SCOPED_MUTEX_LOCK(transmitter_lock, 
this->_transmitter->get_packet_transmitter_mutex().get(), this_ethread());
   SCOPED_MUTEX_LOCK(lock, this->_loss_detection_mutex, this_ethread());
+
+  QUICLDDebug("Largest Acknowledged: %" PRIu64, 
ack_frame->largest_acknowledged());
+  QUICLDDebug("ACK Delay: %" PRIu64, ack_frame->ack_delay());
+  QUICLDDebug("ACK Block Count: %" PRIu64, ack_frame->ack_block_count());
+
   this->_largest_acked_packet = ack_frame->largest_acknowledged();
   // If the largest acked is newly acked, update the RTT.
   auto pi = this->_sent_packets.find(ack_frame->largest_acknowledged());

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to