node-ftp
node-ftp copied to clipboard
socket is not closing correctly
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
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?