]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: disconnect socket directly after probe failure
authorErik Hugne <erik.hugne@ericsson.com>
Tue, 9 Jun 2015 15:27:12 +0000 (17:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 05:05:20 +0000 (22:05 -0700)
commit0792ab6f4525f1dfcf511fe06566bd187044a36f
tree201b8efcf9359813ab77432d88252ce9428cc3b0
parentf18985b76c1f9fe294fd501ea58d79ec0561c652
tipc: disconnect socket directly after probe failure

If the TIPC connection timer expires in a probing state, a
self abort message is supposed to be generated and delivered
to the local socket. This is currently broken, and the abort
message is actually sent out to the peer node with invalid
addressing information. This will cause the link to enter
a constant retransmission state and eventually reset.
We fix this by removing the self-abort message creation and
tear down connection immediately instead.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c