casaroli opened a new pull request, #4105: URL: https://github.com/apache/nuttx-apps/pull/4105
## Summary depends-on: apache/nuttx/pull/22144 A new case of `cmocka_net_tcp`, `test_tcp_halfclose_answer`: over the loopback address, a client sends a 100-byte request, calls `shutdown(SHUT_WR)` and reads a 16 KiB answer to its end. The server reads the request to the end of file, sends the answer and closes. The client must get all the answer and then end of file within 10 s. On NuttX master the client sends each segment of the answer back after its FIN, and the transfer never ends; apache/nuttx#22144 fixes it. ## Impact Only `testing/nettest/tcp`: one new source file, built with `CONFIG_NET_IPv4`, and its lines in `Makefile` and `CMakeLists.txt`. No new Kconfig option. ## Testing qemu-armv8a under HVF, TCP write buffers: | | NuttX master | with apache/nuttx#22144 | |---|---|---| | knsh, 1 CPU | FAIL 3 of 3: no end of file after 10 s | PASS 3 of 3 | | knsh, 4 CPUs (NuttX master 5814b404c95) | the transfer never ends | PASS | | flat nsh, 1 CPU | FAIL | PASS | All other cases of `cmocka_net_tcp` give the same result on both, except flat nsh `test_tcp_reset_send`, which fails on both (the `SIGPIPE` goes to another thread). The test server needs apache/nuttx-apps#4103. `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]
