Hang when PutFiles using .NET assembly

Advertisement

rs199483
Guest

Hang when PutFiles using .NET assembly

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?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Re: Hang when PutFiles using .NET assembly

WinSCP is trying to reconnect indefinitely on the background.
The next version will allow limiting time it tries to reconnect:
https://winscp.net/tracker/860
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum