acassis commented on issue #17299: URL: https://github.com/apache/nuttx/issues/17299#issuecomment-3575739761
> > * Use a positive value to CONFIG_NET_RECV_BUFSIZE this way the readhead buffers are freed early > > Sadly this is not a solution as it is also bugged. The comparison is made [against the FILLED size of the buffer, not the size of the whole buffer](https://github.com/apache/nuttx/blob/b2b045252d1c000d356565e4b692d9bed251e815/net/udp/udp_callback.c#L82). In my test it wasn't difficult to get into the situation where the io_pktlen was much smaller than rcvbufs even though all buffers were allocated to the readahead queue, especially [if packing is turned off.](https://github.com/apache/nuttx/blob/b2b045252d1c000d356565e4b692d9bed251e815/net/utils/net_iob_concat.c#L65) Also @fdcavalcanti found another issue here: https://github.com/apache/nuttx/pull/17358#issuecomment-3575721610 -- 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]
