eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
230 stars 131 forks source link

FTP nx_ftp_client_create return error #129

Closed mapellil closed 1 year ago

mapellil commented 1 year ago

In case of sequence of calls passing the same ftp_client the last nx_ftp_client_create() return error: nx_ftp_client_create(&ftp_client, .....); .... nx_ftp_client_delete(&ftp_client, .....); .... nx_ftp_client_create(&ftp_client, .....); This seems to happen because the nx_ftp_client_delete() do not cleanup the FTP client control block (in particular the ftp_client.nx_ftp_client_id field) Thanks, regards

wenhui-xie commented 1 year ago

Thanks for your report. This is a bug and we will fix it in the next release.

wenhui-xie commented 1 year ago

This bug was fixed in the commit: https://github.com/azure-rtos/netxduo/commit/2973652d801e92615caa285ad9ee13db19a26cb9.