]> 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)
commit4b07eb0d794bcd292caa54c8214cfc771da89e49
tree5feb4be32cd7cfe85d58f65886932d9fd328c1bc
parentbcaf64b10ba517ccac0810398d0020ea7c79365c
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