disabled compression when downloading iso/usb images
authorCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Thu, 16 Oct 2014 16:19:38 +0000 (18:19 +0200)
committerCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Thu, 16 Oct 2014 16:19:38 +0000 (18:19 +0200)
planetlab/nodes/node_downloads.php

index 15c3a82..dd9d46c 100644 (file)
   // (*) action='download-generic-usb':
   //                           : performs actual generic download
 
-ini_set("memory_limit","256M");
+ini_set("memory_limit","512M");
+
+// disables mod_deflate compression when downloading the images
+// because apache reports a different size for the file when compressed 
+// the transfer can be interrupted.
+apache_setenv('no-gzip', 1);
+ini_set('zlib.output_compression', 0);
 
 // Require login
 require_once 'plc_login.php';