From: Ciro Scognamiglio Date: Thu, 16 Oct 2014 16:19:38 +0000 (+0200) Subject: disabled compression when downloading iso/usb images X-Git-Tag: plewww-5.2-5~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=33cb593b9a4b448da73478e3e11d1d3191d8c1b2;p=plewww.git disabled compression when downloading iso/usb images --- diff --git a/planetlab/nodes/node_downloads.php b/planetlab/nodes/node_downloads.php index 15c3a82..dd9d46c 100644 --- a/planetlab/nodes/node_downloads.php +++ b/planetlab/nodes/node_downloads.php @@ -12,7 +12,13 @@ // (*) 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';