Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix keep-alive thread never be closed #628

Closed
wants to merge 1 commit into from

Conversation

myemperor
Copy link

TransportImpl have a default serivce as nullService, when you set keepAlive to retain connection, a keep-alive thread will be create and periodic send msg to remote. but even after sshClient.close() has been called. this keepAlive will still exist.
So, the solution is to set a ConnectionImpl object to TransportImpl.

TransportImpl have a default serivce as nullService, when you set keepAlive to retain connection, a keep-alive thread will be create and periodic send msg to remote. but even after sshClient.close() has been called. this keepAlive will still exist. 
So, the solution is to set a ConnectionImpl object to TransportImpl.
@hierynomus
Copy link
Owner

I'm not sure I understand your comment, or why this should fix it. Can you elaborate? The fix doesn't feel correct...

@dkocher
Copy link
Contributor

dkocher commented Dec 22, 2021

Superseded by #752

@hierynomus hierynomus closed this Dec 22, 2021
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.

None yet

3 participants