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

robb141

Re: Error: Timeout waiting for WinSCP to respond

Problem was on the other side, thanks. You can delete this.
martin

Re: Error: Timeout waiting for WinSCP to respond

Please set Session.SessionLogPath and Session.DebugLogPath and post both logs.
robb141

Error: Timeout waiting for WinSCP to respond

Hi,
I sometimes have problem downloading file via WinSCP.
The file have 650 MB and I am guessing that is why the file won't download.

I tried setting:
$session.Timeout = New-TimeSpan -Minutes 20

$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
    ...
    Timeout = New-TimeSpan -Minutes 10
}

With both options script runs and doesn't seem to be ending, is probably in some infinite loop or something.
In log there is repeating this for two hours already:
. 2021-10-01 16:27:57.224 Sending null packet to keep session alive.
. 2021-10-01 16:27:57.224 Sending special code: 3
. 2021-10-01 16:28:17.594 Sending null packet to keep session alive.
. 2021-10-01 16:28:17.594 Sending special code: 3

Using WinSCP version 5.15.3.9730, running on Windows Server 2016 Enterprise edition.

Thank you.