I am trying to use SSHJ to connect to a SFTP from my Java application. There are a couple of different timeouts that are present but I can't find the difference between them. Even the official docs aren't very helpful. Can someone explain the difference between?
SSHClient.setTimeout()
SSHClient.setConnectTimeout()
SFTPEngine.setTimeoutMs()
Thanks in advance.
SSHClient.setTimeout()– It is propagated toSocket.setSoTimeout– See What is the functionality of setSoTimeout and how it works?SSHClient.setConnectTimeout()– It is propagated toSocket.connect– See How to set timeout on client socket connection?SFTPEngine.setTimeoutMs()– How long to wait for a response from the SFTP server. Basically, it seems to be an equivalent ofSSHClient.setTimeout(), just on a different OSI level.