zephyr/tests/net/tcp
Robert Lubos d686af9fa2 tests: net: tcp: Make sure the underlying TCP connection is closed
In this test suite, the actual peer interacting with the TCP stack is
the test suite itself, therefore all test cases should take care to
finalize the underlying TCP connection before ending, not to interfere
with other test cases.

This was not the case for test_server_out_of_order_data(), which
although released the underlying context on their side, did not finalize
the connection at the TCP level, i. e. did not reply for the FIN packet
etc.

As it seems to be unnecessary overhead to implement the full connection
teardown for the test case, simply send a RST packet to abort the
connection at the TCP level before releasing the context.

This was causing occasional failures in this test suite, as the FIN
packets retransmitted by the TCP stack could interfere with other test
cases logic.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-02-01 06:50:20 -08:00
..
src tests: net: tcp: Make sure the underlying TCP connection is closed 2023-02-01 06:50:20 -08:00
CMakeLists.txt net/tcp: Rename TCP2 to TCP 2021-11-11 07:26:41 -05:00
prj.conf net: tcp: Extend TCP receive queue timeout 2023-01-10 09:26:28 +01:00
testcase.yaml tests: net: Enable CONFIG_NET_BUF_VARIABLE_DATA_SIZE in some tests 2022-11-19 07:39:32 -05:00