Sarthak-Pandey commented on PR #20627:
URL: https://github.com/apache/nuttx/pull/20627#issuecomment-6237705996
Hi @zhhyu7 ,
net/tcp: fix SO_OOBINLINE, out-of-order URG extraction, and FIN_WAIT handling
This commit resolves review feedback for TCP urgent data support:
- Check SO_OOBINLINE in tcp_input.c before stripping urgent bytes from the
stream, and return -EINVAL in tcp_recv_oob() when SO_OOBINLINE is set
(per POSIX).
- Implement tcp_ofoseg_urg() in tcp_callback.c to extract urgent data from
queued out-of-order segments when draining to readahead, resolving pending
TCP_URG_AWAITING announcements.
- Add tcp_urg_input() handling to TCP_FIN_WAIT_1 and TCP_FIN_WAIT_2 to
process urgent data in half-closed receive states.
Signed-off-by: Sarthak Pandey <[email protected]>
--
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]