Thanks for the suggestion. I've looked at that, but the documentation is a little confusing. Under the documentation for the Session class (https://winscp.net/eng/docs/library_session) the description for the Timeout property is "Maximal interval between two consecutive outputs from WinSCP console session, before TimeoutException is thrown. The default is one minute. It’s not recommended to change the value. For session/connection timeout, see SessionOptions.Timeout." And on the page for the SessionOptions, it says this: "Server response timeout. Defaults to 15 seconds." I don't understand the difference between the two, and which default is correct if they are referring to the same thing.
Also, what is the format for specifying a value in SessionOptions.Timeout? If 15 seconds is the default and I want to increase that to 30 seconds, would I specify the value as a literal string, or a numeral? If I was to increase it to more than 1 minute, how would that be formatted? "1:30", for example?
Reply with quote