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


##########
net/tcp/tcp_recvfrom.c:
##########
@@ -412,7 +412,8 @@ static uint16_t tcp_recvhandler(FAR struct net_driver_s 
*dev,
            * next receive is performed.
            */
 
-          if (pstate->ir_recvlen > 0)
+          if ((pstate->ir_recvlen > 0 && (flags & TCP_WAITALL) == 0) ||
+              pstate->ir_buflen == 0)

Review Comment:
   is it ir_recvlen change to zero, not ir_buflen?



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

Reply via email to