Skip to content

KeepAlive example incorrect #784

Closed
Closed
@zman0900

Description

@zman0900

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions