diff options
author | Erik Hugne <erik.hugne@ericsson.com> | 2013-06-17 10:54:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-17 15:53:00 -0700 |
commit | 5d21cb70db0122507cd18f58b4a9112583c1e075 (patch) | |
tree | 4ab1cde607414ca63347dee9f70866c6d69892f6 /mm/mm_init.c | |
parent | cc79dd1ba9c1021c2ac6ae200a65ec38ee8db351 (diff) | |
download | linux-5d21cb70db0122507cd18f58b4a9112583c1e075.tar.bz2 |
tipc: allow implicit connect for stream sockets
TIPC's implied connect feature, aka piggyback connect, allows
applications to save one syscall and all SYN/SYN-ACK signalling
overhead when setting up a connection. Until now, this has only
been supported for SEQPACKET sockets. Here, we make it possible
to use this feature even with stream sockets.
At the connecting side, the connection is completed when the
first data message arrives from the accepting peer. This means
that we must allow the connecting user to call blocking recv()
before the socket has reached state SS_CONNECTED. So we must must
relax the state machine check at recv_stream(), and allow the
recv() call even if socket is in state SS_CONNECTING.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions