Topic "Hang when PutFiles using .NET assembly"

Author Message


I'm using the .NET assembly to upload files to my test SFTP server. This part is working fine. I wanted to see what would happen if I turn the SFTP server off during a call to session.PutFiles. The method just hangs and never returns. I've tried adjusting the session timeout but this has no effect.

I would expect some sort of timeout to happen and have it return control back to my application but this is not the case.

Is this a known issue?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
WinSCP is trying to reconnect indefinitely on the background.
The next version will allow limiting time it tries to reconnect:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License