Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsnipSSHClient.ChannelOpenTimeout

property ChannelOpenTimeout: Cardinal read fChannelOpenTimeout write fChannelOpenTimeout default cSnipChannelOpenTimeoutMSec;
Milliseconds Start waits for the server to answer the SSH channel open that carries the snip connection (default 20000). 0 waits for ever.

ON BY DEFAULT: Start sends the open once the SSH login is complete, and a server that never answers it - one whose channel handling has stopped, or a hostile one - would otherwise hold the calling thread in Start for ever. The wait sleeps between looks, so it costs no processor time however long it lasts.

Expiry raises EsnipTimeout, not EsnipClosed: the SSH connection is up, and the server is silent or slow rather than gone. The connection is left open. Close it before calling Start again: the server may still answer the abandoned open, and the channel that opens then stays unused until the connection closes.

The wait ends at once, with EsnipClosed, when the server refuses the open, the SSH connection closes before the answer comes, or another thread calls Stop, whatever this is set to.