Re: [NuttX] CONFIG_NET_TCP_WRITE_BUFFERS=y deadlock issue

2022-07-20 Thread Petro Karashchenko
Hello, The FTP response actually ends up is send call on TCP socket, so those are actually equivalent. The problem is not ACK related, but more about that almost all TCP packet (up to 65K in theory, but less on practice) can be buffered in readhead IOB chain with all ACKs in place and waiting for

Re: [NuttX] CONFIG_NET_TCP_WRITE_BUFFERS=y deadlock issue

2022-07-20 Thread Fotis Panagiotopoulos
Hi Petro, > ... At > some point of time the system runs out of IOBs (actually I have > CONFIG_IOB_THROTTLE=8, so 8 IOB buffers are still available) and the device > wants to send the FTP response message. Do you refer to an actual FTP response here, or to a TCP level response? Is the problem caus

[NuttX] CONFIG_NET_TCP_WRITE_BUFFERS=y deadlock issue

2022-07-20 Thread Petro Karashchenko
Hello team, Recently I've been using NuttX on a SAMv7 based board with Ethernet. I've tried to use the FTP server for remote access to the SD card. During implementation I faced https://github.com/apache/incubator-nuttx/issues/5973 and did some further analysis. When CONFIG_NET_TCP_WRITE_BUFFERS