zhhyu7 commented on code in PR #18011: URL: https://github.com/apache/nuttx/pull/18011#discussion_r2704226394
########## net/udp/udp_callback.c: ########## @@ -80,7 +80,8 @@ static uint16_t udp_datahandler(FAR struct net_driver_s *dev, conn_lock(&conn->sconn); #if CONFIG_NET_RECV_BUFSIZE > 0 - if (conn->readahead && conn->readahead->io_pktlen > conn->rcvbufs) + if (conn->readahead && conn->readahead->io_pktlen > conn->rcvbufs && + iob_navail(true) == 0) Review Comment: > why add iob_navail check when throttle IOB exists , save it to the receive queue, otherwise, directly release this packet, to avoid affecting other services, especially the packet reception process, due to UDP service not reading readahead data for a long time. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
