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

socket is not closing correctly #258

Open
noririco opened this issue Nov 19, 2019 · 1 comment
Open

socket is not closing correctly #258

noririco opened this issue Nov 19, 2019 · 1 comment

Comments

@noririco
Copy link

noririco commented Nov 19, 2019

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
Copy link

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?

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