This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3518759bc6c8e9703faae6598cb1a2fc918f9019 Author: Bowen Wang <[email protected]> AuthorDate: Mon Jul 21 21:45:35 2025 +0800 vsock/vsock_sockif: set SHUTDOWN_RDWR when received RST in connected state Fix the issue that do not nofity the user that this conenctions has been closed when directly receive peer's RST message in the connected state. Signed-off-by: Bowen Wang <[email protected]> --- net/vsock/vsock_sockif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/vsock/vsock_sockif.c b/net/vsock/vsock_sockif.c index 9f7d3c0780c..f9e9aebcd0c 100644 --- a/net/vsock/vsock_sockif.c +++ b/net/vsock/vsock_sockif.c @@ -1339,7 +1339,8 @@ static int vsock_recv_connected(FAR struct vsock_conn_s *conn, vsock_notify(conn, VSOCK_NOTIFY_SHUTDOWN); break; case VIRTIO_VSOCK_OP_RST: - vsockdbg("Reset\n"); + vsockdbg("Recv reset\n"); + conn->shutdown |= SHUT_RDWR; vsock_notify(conn, VSOCK_NOTIFY_SHUTDOWN); break; default:
