xiaoxiang781216 commented on code in PR #7675: URL: https://github.com/apache/incubator-nuttx/pull/7675#discussion_r1031152297
########## net/rpmsg/rpmsg_sockif.c: ########## @@ -287,11 +286,11 @@ static int rpmsg_socket_ept_cb(FAR struct rpmsg_endpoint *ept, nxmutex_lock(&conn->recvlock); conn->sendsize = head->size; - if (conn->psock) - { - conn->sconn.s_flags |= _SF_CONNECTED; - _SO_SETERRNO(conn->psock, OK); - } + conn->sconn.s_flags |= _SF_CONNECTED; +#ifdef CONFIG_NET_SOCKOPTS + conn->sconn.s_error = OK; +#endif + set_errno(OK); Review Comment: why call set_errno here -- 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