]> git.baikalelectronics.ru Git - kernel.git/commit
tools: testing: vsock: Test when server is bound but not listening
authorSebastien Boeuf <sebastien.boeuf@intel.com>
Fri, 14 Feb 2020 11:48:02 +0000 (12:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:01:49 +0000 (19:01 -0800)
commit0b91a4b40142d064f16b5ad4c10131eddcc633bd
tree5feb4be32cd7cfe85d58f65886932d9fd328c1bc
parent77fc817fe4df404124053abe512a66968b7143f6
tools: testing: vsock: Test when server is bound but not listening

Whenever the server side of vsock is binding to the socket, but not
listening yet, we expect the behavior from the client to be identical to
what happens when the server is not even started.

This new test runs the server side so that it binds to the socket
without ever listening to it. The client side will try to connect and
should receive an ECONNRESET error.

This new test provides a way to validate the previously introduced patch
for making sure the server side will always answer with a RST packet in
case the client requested a new connection.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/vsock/vsock_test.c