Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
in General by (140 points)

We are using edtFTPnetPRO, Version= When connecting via sftp to a host we are seeing the Connection fails to Close before the timeout makes that happen.

So call to Close() does not return before the timeout.

Please advise.



1 Answer

0 votes
by (47.9k points)

It sounds like the server is failing to acknowledge the client’s request to close the connection. The Close method has an override that takes a boolean argument. If you pass true for this argument then the client doesn’t wait for the server’s response before closing the connection. This should fix your problem. Although the protocol specification does state that the client should wait for a response before closing the socket, we’ve never encountered a server that enforces this, so it should be completely safe to close it without awaiting a response.