Searched hist:d21f8348551831efd917528afc545832a372426e (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/mptcp/ |
H A D | protocol.c | diff d21f8348551831efd917528afc545832a372426e Fri Sep 30 10:59:32 CDT 2022 Paolo Abeni <pabeni@redhat.com> mptcp: use fastclose on more edge scenarios
Daire reported a user-space application hang-up when the peer is forcibly closed before the data transfer completion.
The relevant application expects the peer to either do an application-level clean shutdown or a transport-level connection reset.
We can accommodate a such user by extending the fastclose usage: at fd close time, if the msk socket has some unread data, and at FIN_WAIT timeout.
Note that at MPTCP close time we must ensure that the TCP subflows will reset: set the linger socket option to a suitable value.
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|