node-ftp icon indicating copy to clipboard operation
node-ftp copied to clipboard

socket is not closing correctly

Open noririco opened this issue 5 years ago • 1 comments

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

noririco avatar Nov 19 '19 15:11 noririco

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?

DarioCorno avatar Mar 23 '23 01:03 DarioCorno