[BUG] TCP will release when FTP Client want to connect in FTPD example #14531
Labels
Arch: all
Issues that apply to all architectures
Area: Applications
Issues related to Applications
OS: Linux
Issues related to Linux (building system, etc)
Type: Bug
Something isn't working
Description / Steps to reproduce the issue
Test ESP32-S3-DevKitC-1 v1.0: esp32s3-devkit:sta_softap with CONFIG_EXAMPLES_FTPD=y and CONFIG_NETUTILS_FTPD.
nuttx base on master and last commit is
https://github.com/apache/nuttx/commit/204871513486e940fbb29a9a524de9b9e063d3e0
tool chain:
wapi psk wlan0 12345678 3;wapi essid wlan0 John 1;renew wlan0
ftpd_start -4
and connect it with ftp client tools.WARNING: Listen canceled while waiting for ACK on port
(line 1287 in tcp_imput.c),this means no any listener in list.after I modify ftpd_session(handle,5000) to ftpd_session(handle, -1) and connect is ok.
follow is the patch:
this change make accept4() will immediately call after listen().
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu 24.04
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Applications]
Verification
The text was updated successfully, but these errors were encountered: