Version
2.15.0
Bug description
When sshd-sftp it on the class path a sshd-SshClient[*]-timer-thread-1 is created and left running as a side effect of various code execution, even though SFTP is never used during the life time of the JVM.
An example is the execution of Groovy code in the JVM. The problem can be reproduced with the following code:
import java.nio.file.*;
public void test()
throws IOException
{
FileSystems.newFileSystem(Paths.get("foo://bar"));
return; // place breakpoint here to observe the created thread
}
Actual behavior
A thread named sshd-SshClient[*]-timer-thread-1 is being created as a side effect of unrelated code execution.
Expected behavior
The thread should only be created if it is actually needed.
Relevant log output
Other information
No response
Version
2.15.0
Bug description
When sshd-sftp it on the class path a
sshd-SshClient[*]-timer-thread-1is created and left running as a side effect of various code execution, even though SFTP is never used during the life time of the JVM.An example is the execution of Groovy code in the JVM. The problem can be reproduced with the following code:
Actual behavior
A thread named
sshd-SshClient[*]-timer-thread-1is being created as a side effect of unrelated code execution.Expected behavior
The thread should only be created if it is actually needed.
Relevant log output
Other information
No response