Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
BUG: refs #974. Change "large" file threshold for zipstreaming
Browse files Browse the repository at this point in the history
This makes it much less likely that a folder with a huge number of items will
cause out of memory crashes.  It could still happen though; thus is the nature of
zip streaming.
  • Loading branch information
zachmullen committed Mar 12, 2013
1 parent 810c633 commit cf8ddb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/ZipStream/ZipStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ function __construct($name = null, $opt = array()) {
# save options
$this->opt = $opt;

# set large file defaults: size = 20 megabytes, method = store
# set large file defaults: size = 3 megabytes, method = store
if (!isset($this->opt['large_file_size']))
$this->opt['large_file_size'] = 20 * 1024 * 1024;
$this->opt['large_file_size'] = 3 * 1024 * 1024;
if (!isset($this->opt['large_file_method']))
$this->opt['large_file_method'] = 'store';

Expand Down

0 comments on commit cf8ddb3

Please sign in to comment.