Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

425 error on subsequent calls when file is not found on RETR #43

Open
pantosaur opened this issue May 4, 2023 · 1 comment
Open

425 error on subsequent calls when file is not found on RETR #43

pantosaur opened this issue May 4, 2023 · 1 comment

Comments

@pantosaur
Copy link

when downloading a file from the ftp server, whenever I open a file where fileOpen will fail (ftp.c, line 840), and I do this 2 times, the server returns 425 on the following commands, "can't create data socket". I saw that from stepping in the code, when doing get on the FTP client, the server first receives the command PASV and enters the case TCPIP_FTP_CMD_PASV where it calls NET_PRES_SocketSignalHandlerRegister. When fileOpen succeeds, NET_PRES_SocketSignalHandlerDeregister is called. However when fileOpen fails, NET_PRES_SocketSignalHandlerDeregister is not called, the code never steps into NET_PRES_SocketSignalHandlerDeregister.

I am assuming that maybe the sockets are leaked because of this, and that's why I get the error. Any support would be very appreciated.

Thank you.

@Hrisikeshsahu
Copy link
Contributor

Hi,
Thanks a lot for this leak report. we are working on this issue.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants