Property HandlerShutdownTimeout
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
HandlerShutdownTimeout
For a forwarding to a handler (IsHandler): how long DisposeAsync() waits for the handlers it cancelled to return before it closes the connections of those still running under them. 5 seconds by default; Zero closes them at once, and InfiniteTimeSpan waits as long as they take. Set it before disposing; it does not apply to other forwardings, whose connections are closed at once.
public TimeSpan HandlerShutdownTimeout { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
The value is negative (other than InfiniteTimeSpan), or longer than MaxValue milliseconds (about 24 days).