summaryrefslogtreecommitdiff
path: root/net/core/netevent.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2023-02-07 14:04:13 +0100
committerDavid S. Miller <davem@davemloft.net>2023-02-08 09:39:34 +0000
commitd4e85922e3e7ef2071f91f65e61629b60f3a9cf4 (patch)
tree34bc5c451833ffa546cbe66670ab29c537f58193 /net/core/netevent.c
parent1a3245fe0cf84e630598da4ab110a5f8a2d6730d (diff)
mptcp: do not wait for bare sockets' timeout
If the peer closes all the existing subflows for a given mptcp socket and later the application closes it, the current implementation let it survive until the timewait timeout expires. While the above is allowed by the protocol specification it consumes resources for almost no reason and additionally causes sporadic self-tests failures. Let's move the mptcp socket to the TCP_CLOSE state when there are no alive subflows at close time, so that the allocated resources will be freed immediately. Fixes: e16163b6e2b7 ("mptcp: refactor shutdown and close") Cc: stable@vger.kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/netevent.c')
0 files changed, 0 insertions, 0 deletions