View | Details | Raw Unified | Return to bug 2092
Collapse All | Expand All

(-)a/src/internet/model/tcp-socket-base.cc (+3 lines)
 Lines 1716-1721    Link Here 
1716
1716
1717
  bool hasSyn = flags & TcpHeader::SYN;
1717
  bool hasSyn = flags & TcpHeader::SYN;
1718
  bool hasFin = flags & TcpHeader::FIN;
1718
  bool hasFin = flags & TcpHeader::FIN;
1719
  bool hasAck = flags & TcpHeader::ACK;
1719
  bool isAck = flags == TcpHeader::ACK;
1720
  bool isAck = flags == TcpHeader::ACK;
1720
  if (hasSyn)
1721
  if (hasSyn)
1721
    {
1722
    {
 Lines 1723-1728    Link Here 
1723
        { // No more connection retries, give up
1724
        { // No more connection retries, give up
1724
          NS_LOG_LOGIC ("Connection failed.");
1725
          NS_LOG_LOGIC ("Connection failed.");
1725
          m_rtt->Reset (); //According to recommendation -> RFC 6298
1726
          m_rtt->Reset (); //According to recommendation -> RFC 6298
1727
          if (hasAck)
1728
            m_closeNotified = true; 
1726
          CloseAndNotify ();
1729
          CloseAndNotify ();
1727
          return;
1730
          return;
1728
        }
1731
        }

Return to bug 2092