hierynomus / hierynomus/sshj

Is it required to close tunnel (DirectConnection) when connecting to remote server

Open
#672 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

Hi - In the example (Jump.java) we do not see that close method is called on tunnel (DirectConnection object), but we see that there is a close method available on this. Can you please let us know if this object has any resource to be released and so close must be called or is it fine to not invoke close on this object.
Ref: https://github.com/hierynomus/sshj/blob/master/examples/src/main/java/net/schmizz/sshj/examples/Jump.java

Regards,
Kaushal

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.