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

Cancellation Token requesting cancellation but .ConnectAsync still waits to timeout #1610

Open
rathbone01 opened this issue Mar 3, 2025 · 1 comment

Comments

@rathbone01
Copy link

await client.ConnectAsync(cancellationToken);

I have this code but when the cancellation token is called it continues to try and connect for about 3 seconds?

How can I make it completely stop trying to connect so my application can close?

@Rob-Hague
Copy link
Collaborator

Can you pause while debugging to see where in the code the program is waiting?

And what version of .NET is the program? What version of SSH.NET?

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

No branches or pull requests

2 participants