casaroli opened a new pull request, #4171: URL: https://github.com/apache/nuttx-apps/pull/4171
depends-on: apache/nuttx#22440 ## Summary New case `test_tcp_backlog_close_reset` in `cmocka_net_tcp` (`testing/nettest/tcp/test_tcp_backlog.c`, IPv4 on the loopback address): two clients connect to a listener of backlog 4 and nobody accepts them. The listener closes. Then `recv()` of each client must give `ECONNRESET` within 3 s (`SO_RCVTIMEO`): the connections that wait in the backlog of a closed listener get a RST. 3 rounds. It runs before the race cases of the same file and needs `CONFIG_NET_SOCKOPTS`. ## Impact Test only. Without apache/nuttx#22440 the case fails: `recv()` gives `EAGAIN` after 3 s. ## Testing qemu-armv8a:nsh (flat), QEMU TCG, CI image (gcc 12.3), 3 boots each: on master 24f2db7fe8d the case fails 3 of 3 (`11 != 104`, `EAGAIN` after 3 s); with apache/nuttx#22440 it passes 3 of 3. The 4 `test_tcp_backlog_*` cases with 32 TCP connections: all pass with the fix (3 of 3). The whole `cmocka_net_tcp` with the fix: 37 of 38 pass; `test_tcp_reset_send` fails on master too in a flat build. Builds with `-Werror`: qemu-armv8a:nsh and rv-virt:netnsh64 with `cmocka_net_tcp`. `tools/checkpatch.sh -c -u -m -g` passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
