mailsvb / jsftpd

FTP server for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

SebaNar opened this issue · comments

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.

commented

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.