WinSCP 等待 WinSCP 响应超时

WinSCP Timeout waiting for WinSCP to respond

WinSCP 版本使用 5.13.3

我有一个 PowerShell 脚本,可以将 sftp 文件发送到远程服务器。

我间歇性地得到:

Timeout waiting for WinSCP to respond

尝试设置 SessionOptions.Timeout 属性,但也没有帮助...有线索吗?

会话日志....如下所示...

. 2019-12-19 11:30:20.325 Opening remote file.
> 2019-12-19 11:30:20.325 Type: SSH_FXP_OPEN, Size: 117, Number: 515
< 2019-12-19 11:30:22.341 Type: SSH_FXP_HANDLE, Size: 13, Number: 515
> 2019-12-19 11:30:22.341 Type: SSH_FXP_WRITE, Size: 32764, Number: 1030
. 2019-12-19 11:30:45.810 Waiting for dispatching send buffer timed out, asking user what to do.
. 2019-12-19 11:30:45.825 Asking user:
. 2019-12-19 11:30:45.825 **Host is not communicating for 15 seconds.
. 2019-12-19 11:30:45.825
. 2019-12-19 11:30:45.825 Wait for another 15 seconds?** ()
< 2019-12-19 11:30:45.825 Script: Host is not communicating for more than 15 seconds.
< 2019-12-19 11:30:45.825 Still waiting...
< 2019-12-19 11:30:45.825 Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
< 2019-12-19 11:30:45.825 Warning: Aborting this operation will close connection!

关闭优化连接缓冲区大小对我的情况有效。 https://winscp.net/eng/docs/rawsettings

高级 > 关闭连接优化连接缓冲区大小或增加服务器响应超时,例如 9999。