Topic "Prevent session reconnect"

Author Message
burghcoder
[View user's profile]

Joined: 2016-12-07
Posts: 5
Is it possible to prevent WinSCP session from reconnecting after a transfer error? We send files to a load balanced server and we are seeing periodic errors with a session connection. My code does not try to reconnect after an error, but we do see a new session being created on the load balancer when a timeout occurs.

I am also not seeing an error from TransferOperationResult, I only ever get IsSuccess true.

Thanks for your help.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26553
Location: Prague, Czechia
Use Session.AddRawConfiguration("Interface\SessionReopenAuto", "0")

See https://winscp.net/eng/docs/rawconfig
burghcoder
[View user's profile]

Joined: 2016-12-07
Posts: 5
Thanks. Now I just have to wait for the server to fail again.
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License