mennovf commented on issue #17299:
URL: https://github.com/apache/nuttx/issues/17299#issuecomment-3558204215

   > * 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 sized in the buffer, not the size of the whole buffer in 
use](https://github.com/apache/nuttx/blob/b2b045252d1c000d356565e4b692d9bed251e815/net/udp/udp_callback.c#L82).
   In my test it was easy 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)


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

Reply via email to