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/04/01 10:41:43 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5926: local socket: cancel assert about backlog exceed 255

xiaoxiang781216 commented on a change in pull request #5926:
URL: https://github.com/apache/incubator-nuttx/pull/5926#discussion_r840459876



##########
File path: net/local/local_listen.c
##########
@@ -96,7 +96,11 @@ int local_listen(FAR struct socket *psock, int backlog)
 
   /* Set the backlog value */
 
-  DEBUGASSERT((unsigned)backlog < 256);
+  if (backlog > 255)
+    {
+      backlog = 255;
+    }

Review comment:
       Done.




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