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: Update loss detectin logic to draft-09
Date Mon, 19 Feb 2018 05:25:39 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 f3eaaaa  Update loss detectin logic to draft-09
f3eaaaa is described below

commit f3eaaaa195f628596eb331844692fc546598f663
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Mon Feb 19 14:25:06 2018 +0900

    Update loss detectin logic to draft-09
---
 iocore/net/quic/QUICLossDetector.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/iocore/net/quic/QUICLossDetector.cc b/iocore/net/quic/QUICLossDetector.cc
index 867408c..5609176 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -215,8 +215,9 @@ QUICLossDetector::_update_rtt(ink_hrtime latest_rtt, ink_hrtime ack_delay,
QUICP
     this->_smoothed_rtt = latest_rtt;
     this->_rttvar       = latest_rtt / 2.0;
   } else {
-    this->_rttvar       = 3.0 / 4.0 * this->_rttvar + 1.0 / 4.0 * ABS(this->_smoothed_rtt
- latest_rtt);
-    this->_smoothed_rtt = 7.0 / 8.0 * this->_smoothed_rtt + 1.0 / 8.0 * latest_rtt;
+    double rttvar_sample = ABS(this->_smoothed_rtt - latest_rtt);
+    this->_rttvar        = 3.0 / 4.0 * this->_rttvar + 1.0 / 4.0 * rttvar_sample;
+    this->_smoothed_rtt  = 7.0 / 8.0 * this->_smoothed_rtt + 1.0 / 8.0 * latest_rtt;
   }
 }
 

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

Mime
View raw message