anchao opened a new pull request, #8129: URL: https://github.com/apache/nuttx/pull/8129
## Summary net/tcp: correct behavior of SO_LINGER 1. Remove tcp_txdrain() from close() to avoid indefinitely block 2. Send TCP_RST immediately if linger timeout Signed-off-by: chao an <[email protected]> ## Impact N/A ## Testing enable CONFIG_NET_SOLINGER iperf tcp client ``` struct linger ling; ling.l_onoff = 1; ling.l_linger = 0; /* timeout is seconds */ if (setsockopt(sockfd, SOL_SOCKET, SO_LINGER, &ling, sizeof(struct linger)) < 0) { printf("server: setsockopt SO_LINGER failure: %d\n", errno); return -1; } ``` -- 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]
