Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
+1 vote
308 views
in General by (140 points)
Hello,

We are using edtFTPnetPRO, Version=9.4.0.40. 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.

Thanks,

Abhishek.

1 Answer

0 votes
by (51.6k 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.

Categories

...