Skip to content

sshd-sftp on the class path leaves sshd-SshClient[*]-timer-thread-1 running #721

Description

@veita

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

Metadata

Metadata

Assignees

Labels

bugAn issue describing a bug in the code

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions