Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

I agree, the names are confusing and could be better named.
Alekos

Ty for the reply.
The names of these parameters are a bit confusing.
martin

Re: SessionOptions parametter TimeoutInMilliseconds didn't work

SessionOptions.Timeout[InMilliseconds] is session timeout (as in WinSCP GUI session options).

Session.Timeout is timeout for communication between the assembly and the winscp.exe.
Alekos

difference

Maybe I didn't get the difference between TimeoutInMilliseconds and session.Timeout :?:
Alekos

SessionOptions parametter TimeoutInMilliseconds didn't work

Hi,I'm working with VisualStudio 2017 in C# and when I try to set a timeout like that:
SessionOptions sessionOpt = new SessionOptions

{
  Protocol = Protocol.Scp,
  [...]
  TimeoutInMilliseconds = 120000, //2min
  [...]
};
mysession.Open(sessionOpt);


The session's timeout still 60000 (default value)

but when I use :
mysession.Timeout = new TimeSpan(0,2,0); //2min


It works perfectly (session's timeout = 120000) :)

Maybe you have a bug there ;)