curl:(56)Recv失败:连接被重置,如何重试?

curl:(56)Recv失败:连接被重置,如何重试?,curl,Curl,所以我使用curl来下载一个文件。 我通过ssh调用它到windows机器 #Python code SSH to windows machine and run curl cmd = 'curl --retry 5 --retry-delay 5 -o filetoDownload.msi %s' % (download_url) ssh.exec_command(cmd) 有时我很少会遇到这样的错误:(56)Recv失败:连接被重置 如何重试此操作?还是有更好的方法

所以我使用curl来下载一个文件。 我通过ssh调用它到windows机器

#Python code SSH to windows machine and run curl
cmd = 'curl --retry 5 --retry-delay 5 -o filetoDownload.msi %s' % (download_url)
ssh.exec_command(cmd)
有时我很少会遇到这样的错误:(56)Recv失败:连接被重置

如何重试此操作?还是有更好的方法