Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

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
rs199483

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