Home > Back-end > URLDownloadToFile download network file card often death under the dynamic and how to set the timeou
URLDownloadToFile download network file card often death under the dynamic and how to set the timeou
Time:09-25
The network file such as: http://127.0.0.1/cd/xx.pdf Very slow when the network disconnected or network file server to download the main program will always stuck in there when the interface feign death, how to set up a judgment that make them give up the download to download the next file? Please give idea
CodePudding user response:
Suggestion to download in one thread, thread, sets the timeout time, overtime to exit, Best, will timeout is associated with the file size, so that more reasonable,
CodePudding user response:
Use thread processing, set the timeout
CodePudding user response:
Above two Daniel how to set the timeout in the thread for example also receive didn't
CodePudding user response:
Set the timeout in the thread I would
CodePudding user response:
This is a BUG of Microsoft, Microsoft solution is given in a thread