sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
http://sshnet.github.io/SSH.NET/
MIT License
3.88k stars 917 forks source link

Timeout not followed when connecting via SOCKS #1335

Closed BoronBGP closed 1 month ago

BoronBGP commented 4 months ago

Currently whenever an SSH connection is made via socks and the server cannot be reached there is a long delay until a "Destination Unreachable" error is thrown and ConnectionInfo.timeout seems to make no difference to this. It would be very useful to make these connections to throw the exception once the length of the timeout has passed.

WojciechNagorski commented 4 months ago

Thanks for reporting the problem!

The fastest method to solve this problem will be to prepare an appropriate PR yourself, preferably with the preparation of an appropriate unit or integration test.

At the moment, the project is being developed entirely as a hobby without any support.

Rob-Hague commented 1 month ago

Completed by #1342