trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] 01/02: Fix loss detection timer
Date Wed, 06 Dec 2017 07:55:51 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

commit 76083d8bf0acdffe2faaacbd429a5712e970919e
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Wed Dec 6 16:17:50 2017 +0900

    Fix loss detection timer
---
 iocore/net/quic/QUICLossDetector.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICLossDetector.cc b/iocore/net/quic/QUICLossDetector.cc
index b32aab2..4a58690 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -336,7 +336,11 @@ QUICLossDetector::_set_loss_detection_alarm()
     QUICLDDebug("RTO alarm will be set");
   }
 
-  this->_loss_detection_alarm_at = Thread::get_hrtime() + alarm_duration;
+  if (this->_loss_detection_alarm_at) {
+    this->_loss_detection_alarm_at = std::min(this->_loss_detection_alarm_at, Thread::get_hrtime()
+ alarm_duration);
+  } else {
+    this->_loss_detection_alarm_at = Thread::get_hrtime() + alarm_duration;
+  }
   QUICLDDebug("Loss detection alarm has been set to %" PRId64, alarm_duration);
 
   if (!this->_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