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

Add EOF test to SSH2::isConnected #1926

Closed

Conversation

kevinreniers
Copy link
Contributor

I'm not sure if you're interested in merging this, but I think it makes sense to add this. In my opinion, this would make the behavior from SSH2::isConnected more intuitive to use.

This simply adds an EOF test against the internal socket. Happy to make any desired changes, also fine if you don't think it belongs. After some initial testing, I can also work around the issue of #1923 at the application level.

Relates to undesired behavior observed in #1923.

This adds an additional test to SSH2::isConnected to make it more intuitive. Aside from testing against the internal state, it will also assert that there is an internal socket and that that socket has not reached EOF.
@terrafrost
Copy link
Member

I cherry-pick'd this into the 1.0 branch and merged that into 2.0 / 3.0 / master:

38a2a84

@terrafrost terrafrost closed this Jul 5, 2023
terrafrost referenced this pull request Jul 5, 2023
This adds an additional test to SSH2::isConnected to make it more intuitive. Aside from testing against the internal state, it will also assert that there is an internal socket and that that socket has not reached EOF.
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

2 participants