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 SocketAsyncEventArgsAwaitable calling continuation multiple times #918

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

IgorMilavec
Copy link
Collaborator

Is some cases SocketAsyncEventArgsAwaitable was calling continuations multiple times due to improper state transition.
This will fix #913

@IgorMilavec IgorMilavec marked this pull request as ready for review February 17, 2022 11:28
@IgorMilavec
Copy link
Collaborator Author

This has been running in my test environment for a couple of days and it seems there are no regressions.

@dlangell
Copy link

What are the chances of getting this merged into the main development branch? I haven't personally tested it, but it would be helpful if the fix actually works. The ConnectAsync function is basically unusable without it since it can cause an unhandled exception. I've had to stick with the Synchronous Connect instead because I was seeing the same issue noted in #913. Cancelling the token while waiting for ConnectAsync to return for a device that is not reachable will cause the exception.

@Rob-Hague Rob-Hague merged commit 59840ec into sshnet:develop Apr 27, 2024
1 check passed
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.

System.InvalidOperationException: Renci.SshNet.Abstractions.SocketExtensions+_ConnectAsync_d__1.MoveNext
3 participants