Procházet zdrojové kódy

In some rare cases, the HTML minifier can be very slow, timeouting other simultaneous requests

Gaël Métais před 4 roky
rodič
revize
fd11e8c1fe
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      lib/tools/redownload/redownload.js

+ 2 - 2
lib/tools/redownload/redownload.js

@@ -25,8 +25,8 @@ var imageDimensions     = require('./imageDimensions');
 
 
 var Redownload = function() {
 var Redownload = function() {
 
 
-    var MAX_PARALLEL_DOWNLOADS = 10;
-    var REQUEST_TIMEOUT = 15000; // 15 seconds
+    var MAX_PARALLEL_DOWNLOADS = 5;
+    var REQUEST_TIMEOUT = 30000; // 30 seconds
 
 
 
 
     // This function will re-download every asset and check if it could be optimized
     // This function will re-download every asset and check if it could be optimized