[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #50498] tcp: do not keep sending SYNs when getting ACK

From: David van Moolenbroek
Subject: [lwip-devel] [bug #50498] tcp: do not keep sending SYNs when getting ACKs
Date: Wed, 8 Mar 2017 14:56:15 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0


                 Summary: tcp: do not keep sending SYNs when getting ACKs
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: dcvmoole
            Submitted on: Wed 08 Mar 2017 07:56:14 PM UTC
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head



An amendment to git-2e26fc9 ("tcp: Avoid 3-second delay for a half-open


If a locally generated TCP SYN packet is replied to with an ACK packet, lwIP
immediately sends a RST packet followed by resending the SYN packet.  This is
expected, but on loopback interfaces the resent SYN packet may immediately get
another ACK reply, typically when the other endpoint is in TIME_WAIT state
(which ignores the RSTs).  The result is an endless loop of SYN, ACK, RST

This patch applies the normal SYN retransmission limit in this scenario, such
that the endless loop is limited to a brief storm.


File Attachments:

Date: Wed 08 Mar 2017 07:56:14 PM UTC  Name:
0001-tcp-do-not-keep-sending-SYNs-when-getting-ACKs.patch  Size: 2kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]