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

Some files are empty, passive-ports are note closed correctly #13

Open
SebaNar opened this issue Feb 10, 2022 · 1 comment
Open

Some files are empty, passive-ports are note closed correctly #13

SebaNar opened this issue Feb 10, 2022 · 1 comment

Comments

@SebaNar
Copy link

SebaNar commented Feb 10, 2022

First i would like to thank you for this nodejs ftp server.

Having IOT devices uploading minimal csv files via FTPS.
I've removed the need of PBSZ cause the device does not send this command.

But i think the passive-ports are not closed correctly.
See attached log file:
FtpLogWithoutIp.txt

The device is creating a passive channel, stores a file and then quits.
But as you can see port is always increasing which looks like the ports are not freed correctly.
Some files get stored correctly on file system, some are empty.

Would be nice to get your help.

@mailsvb
Copy link
Owner

mailsvb commented Mar 17, 2022

Hi @SebaNar
I have added a timeout on the data sockets. Maybe they are not closed correctly by the client after the file transfer.
The socket timeout is 5 sec, should be OK according to the trace.
Maybe you can give it a try.

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

No branches or pull requests

2 participants