We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807b424 commit aa2068eCopy full SHA for aa2068e
1 file changed
src/net/tcp/connection.cpp
@@ -629,9 +629,14 @@ void Connection::take_rtt_measure(const Packet& packet)
629
if(cb.SND.TS_OK)
630
{
631
auto* ts = parse_ts_option(packet);
632
- rttm.rtt_measurement(RTTM::milliseconds{host_.get_ts_value() - ntohl(ts->ecr)});
+ if(ts)
633
+ {
634
+ rttm.rtt_measurement(RTTM::milliseconds{host_.get_ts_value() - ntohl(ts->ecr)});
635
+ return;
636
+ }
637
}
- else if(rttm.active())
638
+
639
+ if(rttm.active())
640
641
rttm.stop(RTTM::milliseconds{host_.get_ts_value()});
642
0 commit comments