Message ID | 20250204-net-mptcp-sft-conn-f-v1-1-6b470c72fffa@kernel.org |
---|---|
State | New |
Headers | show |
Series | [net] selftests: mptcp: connect: -f: no reconnect | expand |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Tue, 04 Feb 2025 23:19:53 +0100 you wrote: > The '-f' parameter is there to force the kernel to emit MPTCP FASTCLOSE > by closing the connection with unread bytes in the receive queue. > > The xdisconnect() helper was used to stop the connection, but it does > more than that: it will shut it down, then wait before reconnecting to > the same address. This causes the mptcp_join's "fastclose test" to fail > all the time. > > [...] Here is the summary with links: - [net] selftests: mptcp: connect: -f: no reconnect https://git.kernel.org/netdev/net/c/5368a67307b3 You are awesome, thank you!
diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.c b/tools/testing/selftests/net/mptcp/mptcp_connect.c index 414addef9a4514c489ecd09249143fe0ce2af649..d240d02fa443a1cd802f0e705ab36db5c22063a8 100644 --- a/tools/testing/selftests/net/mptcp/mptcp_connect.c +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.c @@ -1302,7 +1302,7 @@ int main_loop(void) return ret; if (cfg_truncate > 0) { - xdisconnect(fd); + shutdown(fd, SHUT_WR); } else if (--cfg_repeat > 0) { xdisconnect(fd);