-
-
Notifications
You must be signed in to change notification settings - Fork 947
We has can public _isDisposed? #424
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
Comments
See PL #458 |
This is great, thank you. |
A SSH.NET client (SFTP, SSH, …) is only ever disposed when |
Actually, Dispose is also called when the channel closes abruptly. See my issue #453. This is one of the main issues PL #458 tries to address. This causes the ShellStream to Dispose without the user explicitly doing so. I can continue to discuss ways forward to address this issue in the actual PL. I'm not hard-set on the current PL implementation and completely understand if it appears a bit 'hackish.' Let's make work and make it 'right' 😃 |
…isconnected Temporary fix until this is fixed upstream: sshnet#424 (comment) sshnet#458
I have created a discussion #926 for all ShellStream related issues. |
SSH.NET version 2024.0.0 has changed a lot. I'm closing the ticket, but if the problem still persists, please feel free to reopen or open a new ticket. |
I want to get the
Dispose
state of theSftpClient
instance outside.This state allows me to decide when to reinitialize it.
Do you have any better advice?
Here's my sample code:
The text was updated successfully, but these errors were encountered: