it you set reconectime = 1
then it tried once and fails
So this works for me.
Setting to 0, it never exits the loop
Thanks for posting this. Your are actually right. Sorry for misleading you.
it you set reconectime = 1
then it tried once and fails
So this works for me.
Setting to 0, it never exits the loop
session.ReconnectTime = TimeSpan.Zero;
session.ReconnectTime = TimeSpan.Zero;
Session.ReconnectTime
to zero?
With SCP protocol reconnect is not supported at all. That's why it does not reconnect.
With SFTP protocol you have to turn it off explicitly, if you do not want it. SetSession.ReconnectTime
to zero to turn of reconnect completely.
With SCP protocol reconnect is not supported at all. That's why it does not reconnect.
With SFTP protocol you have to turn it off explicitly, if you do not want it. SetSession.ReconnectTime
to zero to turn of reconnect completely.
With SCP protocol reconnect is not supported at all. That's why it does not reconnect.
With SFTP protocol you have to turn it off explicitly, if you do not want it. SetSession.ReconnectTime
to zero to turn of reconnect completely.
Session.ReconnectTime
to low value (like 1 second) to limit the reconnect.