You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems #752 was a breaking change for how KeepAlive must be enabled. Previously, KeepAlive::setKeepAliveInterval would actually start the KeepAlive thread, so it could be (or had to be?) called after calling SSHClient::connect. Now, it appears the thread is only started from SSHClient::onConnect, which is called during SSHClient::connect. So if the keep alive interval is not pre-set before calling connect, the thread never starts.
The net.schmizz.sshj.examples.KeepAlive class should be changed to show setting the interval before connecting.
The text was updated successfully, but these errors were encountered:
It seems #752 was a breaking change for how KeepAlive must be enabled. Previously, KeepAlive::setKeepAliveInterval would actually start the KeepAlive thread, so it could be (or had to be?) called after calling SSHClient::connect. Now, it appears the thread is only started from SSHClient::onConnect, which is called during SSHClient::connect. So if the keep alive interval is not pre-set before calling connect, the thread never starts.
The
net.schmizz.sshj.examples.KeepAlive
class should be changed to show setting the interval before connecting.The text was updated successfully, but these errors were encountered: