# HG changeset patch # User Dan Fuhry # Date 1326723800 18000 # Node ID 53c7e3cc7fb577064f37b5d402f8d334bc911140 # Parent a8fc93c06fcb75ebc6534fdfdc592c4bda927a3c Disable output gzipping during file download... it negates the memory usage controls diff -r a8fc93c06fcb -r 53c7e3cc7fb5 plugins/SpecialUpdownload.php --- a/plugins/SpecialUpdownload.php Mon Jan 16 09:22:24 2012 -0500 +++ b/plugins/SpecialUpdownload.php Mon Jan 16 09:23:20 2012 -0500 @@ -301,19 +301,20 @@ { header('Content-disposition: attachment, filename="' . $filename . '";'); } - if ( !@$GLOBALS['do_gzip'] ) + //if ( !@$GLOBALS['do_gzip'] ) header('Content-length: ' . $len); header('Last-Modified: '.enano_date('r', $row['time_id'])); // using this method limits RAM consumption + @ob_end_flush(); while ( !feof($handle) ) { echo fread($handle, 512000); } fclose($handle); - gzip_output(); + $db->close(); exit;