qzuser123ss 发表于 2024-11-1 02:23:06

WinHttp下载大文件时一直报超时

WinHttp下载大文件时一直报超时,比如下载一个1GB得文件,下载到40的时候就一直调试输出如下内容


```
------ Encounted exception:
Code: 0
Source: WinHttp.WinHttpRequest
Description: 操作超时

HelpFile:
HelpContext: 0
scode: 80072EE2
------ Encounted exception:
Code: 0
Source: WinHttp.WinHttpRequest
Description: 操作超时

HelpFile:
HelpContext: 0
scode: 80072EE2
------ Encounted exception:
Code: 0
Source: WinHttp.WinHttpRequest
Description: 操作超时

HelpFile:
HelpContext: 0
scode: 80072EE2
------ Encounted exception:
Code: 0
Source: WinHttp.WinHttpRequest
Description: 操作超时

HelpFile:
HelpContext: 0
scode: 80072EE2
```

Xelloss0618 发表于 2024-11-1 11:11:20

设置一下超时时间

qzuser123ss 发表于 2024-11-1 14:57:38

Xelloss0618 发表于 2024-11-1 11:11
设置一下超时时间

设置了超时,感觉像是某一段资源下载失败
页: [1]
查看完整版本: WinHttp下载大文件时一直报超时