diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-07-22 18:05:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-23 17:33:54 +0200 |
commit | f8dd60de194817c86bf812700980762bb5a8d9a4 (patch) | |
tree | 35fec37c686069290b6abcb65d8815d46fa86483 /net/kcm | |
parent | octeontx2-af: Remove unnecessary devm_kfree (diff) | |
download | linux-f8dd60de194817c86bf812700980762bb5a8d9a4.tar.xz linux-f8dd60de194817c86bf812700980762bb5a8d9a4.zip |
tipc: fix implicit-connect for SYN+
For implicit-connect, when it's either SYN- or SYN+, an ACK should
be sent back to the client immediately. It's not appropriate for
the client to enter established state only after receiving data
from the server.
On client side, after the SYN is sent out, tipc_wait_for_connect()
should be called to wait for the ACK if timeout is set.
This patch also restricts __tipc_sendstream() to call __sendmsg()
only when it's in TIPC_OPEN state, so that the client can program
in a single loop doing both connecting and data sending like:
for (...)
sendmsg(dest, buf);
This makes the implicit-connect more implicit.
Fixes: b97bf3fd8f6a ("[TIPC] Initial merge")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/kcm')
0 files changed, 0 insertions, 0 deletions