nuttxs opened a new pull request, #16240: URL: https://github.com/apache/nuttx/pull/16240
## Summary net/tcp/tcp_conn.c: optimize the port conflict detection rules for tcp_listener(). Fixed potential conflict between implicit binding and port conflict detection. Implicit binding automatically allocates an interface address during connection,but port conflict detection occurs before binding/connecting. This can cause issues when creating multiple TCP connections in succession. If the first connection uses a random port via implicit binding, subsequent connections might reuse the same port under current filtering rules, leading to connect() failures. ## Impact New Feature/Change: Issue fix (no new feature). User Impact: optimize the port conflict detection rules for tcp_listener(). Build Impact:No new Kconfig options or build system changes. Security: No Compatibility: Backward-compatible; no breaking changes. ## Testing Scenario simulation: ``` // Connection A: socket(); connect("192.168.1.100:8080"); // Implicitly binds to 192.168.1.100:random port // Connection B: socket(); connect("192.168.1.100:8080"); // Under current filtering rules, port conflict detection is ineffective, may randomly assign A's port ``` -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org