You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "CV-Bowen (via GitHub)" <gi...@apache.org> on 2023/09/08 02:12:01 UTC

[GitHub] [nuttx] CV-Bowen opened a new pull request, #10537: rpmsg_sockif: add recvlock for conn->sendsize in connect

CV-Bowen opened a new pull request, #10537:
URL: https://github.com/apache/nuttx/pull/10537

   ## Summary
   conn->sendsize is used in rpmsg_socket_ept_cb() and rpmsg_socket_connect_internal(), the connected event may be missed as stated below:
   
   1. in rpmsg_socket_connect_internal(), judge conn->sendsize == 0 and prepare to wait sendsem;
   2. interrupt by rptun thread, rpmsg_socket_ept_cb() is called to update conn->sendsize and post the sendsem, but the no one wait rx sem yet, so not post (see rpmsg_socket_post());
   3. return to rpmsg_socket_connect_internal() to wait the sendsem, but has miss the connected event.
   
   So add recvlock in rpmsg_socket_connect_internal() also.
   
   
   ## Impact
   rpmsg socket
   
   ## Testing
   Tested in BES chip (Cortex-A7 Dual Core and Cortex-M33 Single Core)
   


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 merged pull request #10537: rpmsg_sockif: add recvlock for conn->sendsize in connect

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #10537:
URL: https://github.com/apache/nuttx/pull/10537


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org