Verified Commit d9493527 authored by Pavel Doležal's avatar Pavel Doležal
Browse files

TCP RTT fix: Try to guess RTT when FIN is captured before 3-way handshake is completed

parent eedd6beb
......@@ -167,6 +167,7 @@ bool DDP::DnsTcpConnection::update_connection(DnsRecord& record, const Packet& p
// Received FIN to close connection
if (header->fin) {
m_rtt = m_state == TcpConnectionState::ESTABLISHED ? m_rtt : Time(Time::Clock::MONOTONIC) - m_rtt;
m_state = TcpConnectionState::FIN1;
m_fin[conn_side] = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment