mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 244 forks source link

socket is not closing correctly #258

Open noririco opened 4 years ago

noririco commented 4 years ago

I can only connect once to the FTP in PASV, the connection is keep alive and I can get many files, if I end/destroy and connect again, once I try to GET i receive the connection REFUSED error since

socket.connect(port, ip);

fails.

How do I close the socket correctly ?

If I try to connect via FileZila I can reconnect as much as I want and still GET files. Filezila returns Status: Disconnected from server Trace: CRealControlSocket::DoClose(66) Trace: CControlSocket::DoClose(66) Trace: CFtpControlSocket::ResetOperation(66) Trace: CControlSocket::ResetOperation(66) Trace: CFileZillaEnginePrivate::ResetOperation(66) Trace: CRealControlSocket::DoClose(66) Trace: CControlSocket::DoClose(66) Trace: CControlSocket::DoClose(66) Trace: CFileZillaEnginePrivate::ResetOperation(0)

when disconnecting

DarioCorno commented 1 year ago

Did u find a solution? I need to upload a file every N minutes and the server refuses my connection due to concurrent connections. Did u find a way to close the socket correctly?