cederom commented on PR #4106:
URL: https://github.com/apache/nuttx-apps/pull/4106#issuecomment-7120306760
Please resolve the tesitng/nettest conflicts :-)
Fixed:
- **Backlog cases (was #3):** guarded by `CONFIG_NET_TCPBACKLOG` in the
source, the header and `main()`.
- **Teardown after a failed assert (was #5):** the client thread IDs now
live in the case state, and teardown joins them.
- **Timing nit (was #6):** `tcp_backlog_now()` and the redundant time check
are gone.
- **Procfs guard (was #2):** now also requires `CONFIG_NET_STATISTICS`
(which `/proc/net/tcp` really depends on), `CONFIG_NET_TCP_MAX_CONNS` of 0 or
at least 1024, and `CONFIG_NET_TCP_WAIT_TIMEOUT` of at least 60 s.
- **Flaky procfs count (was #1):** fixed by the kernel change. There is also
a new case, `test_tcp_procfs_close`. It opens 8 connection pairs, then makes
300 connections, so the pairs sit ahead of them in the list. It reads the file
until the pairs have been listed, resets the pairs, then requires all 300
client-side lines to appear exactly once. That is exactly the failure from #1,
so it's a good regression test.
Still open:
1. **A stall still hangs the run (was #4).** The race clients are joined
with a plain `pthread_join()`, now in teardown as well. If the network stalls
the way the description reports on master, the whole cmocka run hangs instead
of failing that case.
2. **The branch includes three commits that are not in apps master:**
- `5ff9666` (peer port checks)
- `95c5d82` (I/O buffer send timeout)
- `bce81d5` (peer that closes early)
This PR's Makefile and CMake changes depend on them (`test_tcp_iov.c`).
If they are separate PRs, the description should list them as dependencies. If
they belong to this PR, its scope has grown. I couldn't confirm which from git
alone.
3. **Nit:** in both procfs cases, an assert inside `tcp_procfs_listen()` or
`tcp_procfs_timewait()` leaks `seen`, because the explicit `free()` only covers
the `open()` failure and the final check. The `setsockopt(SO_LINGER)` return
value in `test_tcp_procfs_close` is not checked.
--
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]