From 33cb593b9a4b448da73478e3e11d1d3191d8c1b2 Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Thu, 16 Oct 2014 18:19:38 +0200 Subject: [PATCH] disabled compression when downloading iso/usb images --- planetlab/nodes/node_downloads.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'; -- 2.43.0