SessionOptions parametter TimeoutInMilliseconds didn't work

Advertisement

Alekos
Guest

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 ;)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum