Skip to content

Conversation

@tomaswolf
Copy link
Member

  1. Create the session timeout thread on demand.
  2. in getPath(URI) handle only SFTP URIs and create a file system if none exists already for the URI.

Fixes #721.

Only schedule the SessionTimeoutListener when the first session is
created. Cancel it when there are no more sessions. Re-schedule it
when there are sessions again.

So the session timeout listener is running periodically only when
there are sessions.

This prevents the up-front creation of these timer threads when an
SftpFileSystemProvider is instantiated.
Only handle URIs with scheme "sftp" and create a file system for the
given URI if none exists already.
@tomaswolf tomaswolf merged commit c49c068 into apache:master Jan 3, 2026
7 checks passed
@tomaswolf tomaswolf deleted the gh-721 branch January 3, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant