zephyr/tests
Robert Lubos 822a82d619 tests: lib: thrift: Fix timing issues with TCP
The test delegates putting the server socket into listening (i. e.
calling listen() on the socket) to a separate thread, which did have a
chance to run before client attempted to establish TCP connection.

This was not visible before, as we did not reply with RST to a
connection attempt on a closed port, so the connection was eventually
establish after SYN retransmission. But as we do reject such a
connection now with RST, the connection attempt failed. Therefore, a
small delay was added after spawning the server thread, to give it a
chance to configure the server socket.

Additionally, lower the CONFIG_NET_TCP_TIME_WAIT_DELAY value so that TCP
contexts are released earlier, and add a respective delay in the test
teardown function. Not doing so also triggered unneeded SYN
retransmissions, as there were no enough TCP context to accept the
incoming connection, before freeing the resources allocated for the
previous one.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-10-20 15:13:22 +02:00
..
application_development tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
arch tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
benchmarks tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
bluetooth tests: bluetooth: tester: Allow to compile mesh without LPN 2023-10-20 15:09:25 +02:00
boards tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
boot tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
bsim tests: Bluetooth: BAP: Add broadcast sink with assistant test 2023-10-20 15:10:37 +02:00
cmake tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
crypto tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
drivers drivers: uart_emul: Add Emulated Errors 2023-10-20 15:10:27 +02:00
kernel ztest: remove old ztest api 2023-10-20 15:04:29 +02:00
lib tests: lib: thrift: Fix timing issues with TCP 2023-10-20 15:13:22 +02:00
misc tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
modules tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
net tests: net: tcp: Add tests to cover improved RST handling 2023-10-20 15:13:22 +02:00
posix tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
robot Twister: Add integration with renode-test 2023-05-26 09:43:49 -04:00
subsys ztest: remove old ztest api 2023-10-20 15:04:29 +02:00
unit tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
ztest tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
test_config.yaml twister: add support for levels and test configuration 2023-03-07 15:49:16 +01:00