You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/27 08:18:33 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6529: net: Ensure sendmsg and sendfile return -EAGAIN in case of timeout

xiaoxiang781216 commented on code in PR #6529:
URL: https://github.com/apache/incubator-nuttx/pull/6529#discussion_r907105001


##########
net/sixlowpan/sixlowpan_tcpsend.c:
##########
@@ -660,6 +660,11 @@ static int sixlowpan_send_packet(FAR struct socket *psock,
               ret = net_timedwait(&sinfo.s_waitsem, timeout);
               if (ret != -ETIMEDOUT || acked == sinfo.s_acked)

Review Comment:
   Yes, we may break the loop due to acked == sinfo.s_acked, but the return value is -ETIMEDOUT.



-- 
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