Post a reply

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

NottaSmartMan

Calculate before connecting; or disable calculation

We're running into an issue where we're using a PowerShell script to 'synchronize directories'.

The problem is that WinSCP connects to the SFTP server 1st, then calculates the local file/folder sizes.

What appears to be happening in our case, is that this local calculation can take longer than 5 minutes (it's a lot of files/folders). This delay causes the TCP connection on the Azure firewall to drop and the sFTP connection to eventually fail once the calculation has finished. This 5 minute Azure timeout is a default setting than Microsoft controls, not us.

Suggestion.. two options:

  1. Calculate the local file/folder sizes BEFORE you establish an sFTP connection and therefore avoid any chance of an idle timeout.
  2. Give us the option to disable the size checking
  3. Update WinSCP to send some sort of keepalive packets while the calc process in underway