Lỗi cannot download the file because of timeout năm 2024

Our firewall scans all downloads before forwarding. For this reason, the proxy temporarily sends only very small data packets until the virus scan is completed. Currently, however, Patch My PC cancels the download after only 40 seconds ("An error occurred while downloading the file: The operation has timed out"). This is too small for larger downloads like LibreOffice.

Is it possible to configure the (proxy) timeout for downloading applications?


We will have to look into the methods available in .NET to see if increasing the timeout may help in your scenario.

Our firewall scans all downloads before forwarding. For this reason, the proxy temporarily sends only very small data packets until the virus scan is completed. Currently, however, Patch My PC cancels the download after only 40 seconds ("An error occurred while downloading the file: The operation has timed out"). This is too small for larger downloads like LibreOffice.

Is it possible to configure the (proxy) timeout for downloading applications?

Have you possibly found a way to adjust the proxy timeout?

The problem also affects other applications (such as Adobe Acrobat DC). By the way, it is currently not 40 seconds to the timeout as I wrote before, but 1 minute and 40 seconds.


Curious if you have run any type of network capture during the download timeout?

Have you possibly found a way to adjust the proxy timeout?

The problem also affects other applications (such as Adobe Acrobat DC). By the way, it is currently not 40 seconds to the timeout as I wrote before, but 1 minute and 40 seconds.

I haven't done a network capture yet. However, most other downloads work fine. The proxy always waits for the complete download to complete, so that it can perform a virus scan before forwarding it to the client. For the affected products the download is obviously too slow to download the file within 100 seconds, check for viruses and then forward it to the Patch-My-PC service. I currently assume that adjusting the proxy timeout to e.g. 300 seconds could solve the problem.

However, I will check again in the next few days via network capture whether there could be another cause.


As a workaround, you could use this option for now?

Lỗi cannot download the file because of timeout năm 2024


Yes, as a workaround this is possible. However, I would like to avoid manual downloads in the future.

In principle, we can also switch off the virus scan for these downloads on the proxy as a workaround. Then the downloads will be forwarded to the Patch-My-PC service as supplied by the source. However, I would like to avoid this for security reasons.




There are some other things we need to take into account when increasing the timeout. What's the longest you see for the largest update when downloading through your proxy.


I ran some tests on the server with the download URLs aborted by Patch-My-PC using the Powershell function Invoke-WebRequest (which has a -TimeoutSec switch for extending the timeout). Whether the values would be comparable with the .Net download function you used, I cannot estimate.

But the main reason seems to be that these sources provide the files only with limited bandwidth.

As already written, for all other downloads we use, the 100 sec time window seems to be sufficient for the download.


I repeated the tests because I didn't really trust the very high values of yesterday. This time I used the Powershell function Start-BitsTransfer. The download times are much shorter and probably more comparable with Patch-My-PC.

The Remote Desktop Manager was probably a temporary problem yesterday.

On the basis of these measured times an extension of the timeout to 300 seconds would seem to be good.

Your connection to your Internet service provider begins at your computer and ends at a hub of high-speed connections that handle the Web access of millions of customers. Occasionally, hiccups occur that cause service interruptions. If you are in the middle of a download when your Internet service goes down, you will receive a “timeout” error message. You can resume timed-out downloads in a number of ways.

  • Click the “Resume” button on the download if your Web browser supports paused downloads. Some browsers will pause the download in the event of a service interruption.
  • Delete the partial file that downloaded before your service went down and try downloading it again. If your Web access stays stable, you should be able to complete the download.
  • Try downloading the file from a mirror server. Many popular downloads offer several different download sources; one server might be having issues.
  • Verify that the download provider is not experiencing technical problems by contacting support. Timeout errors can occur if the download server is overloaded or down, even if your connection is fine.

Disable your firewall and attempt the download again. Firewall software can occasionally cause problems with downloads.