trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masa...@apache.org
Subject [trafficserver] branch quic-latest updated: Add debug log in QUICLossDetector::_detect_lost_packets()
Date Fri, 02 Mar 2018 05:45:55 GMT
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 3587184  Add debug log in QUICLossDetector::_detect_lost_packets()
3587184 is described below

commit 358718497de8dcd6ded3a9d1e0f9206fd7bbef83
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Fri Mar 2 14:45:27 2018 +0900

    Add debug log in QUICLossDetector::_detect_lost_packets()
---
 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 5609176..eae580d 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -351,8 +351,13 @@ QUICLossDetector::_detect_lost_packets(QUICPacketNumber largest_acked_packet_num
     ink_hrtime time_since_sent = Thread::get_hrtime() - unacked.second->time;
     uint64_t packet_delta      = largest_acked_packet_number - unacked.second->packet_number;
     if (time_since_sent > delay_until_lost) {
+      QUICLDDebug("Lost: time since sent is too long (sent=%" PRId64 ", delay=%lf, fraction=%lf,
lrtt=%" PRId64 ", srtt=%" PRId64
+                  ")",
+                  time_since_sent, delay_until_lost, this->_time_reordering_fraction,
this->_latest_rtt, this->_smoothed_rtt);
       lost_packets.insert({unacked.first, *unacked.second});
     } else if (packet_delta > this->_reordering_threshold) {
+      QUICLDDebug("Lost: packet delta is too large (largest=%" PRId64 " unacked=%" PRId64
" threshold=%" PRId32 ")",
+                  largest_acked_packet_number, unacked.second->packet_number, this->_reordering_threshold);
       lost_packets.insert({unacked.first, *unacked.second});
     } else if (this->_loss_time == 0 && delay_until_lost != INFINITY) {
       this->_loss_time = Thread::get_hrtime() + delay_until_lost - time_since_sent;

-- 
To stop receiving notification emails like this one, please contact
masaori@apache.org.

Mime
View raw message