Error: Timeout waiting for WinSCP to respond

Advertisement

robb141
Joined:
Posts:
2

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,034
Location:
Prague, Czechia

Re: Error: Timeout waiting for WinSCP to respond

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

Reply with quote

Advertisement

You can post new topics in this forum