Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed & Time-Limit / stopping after some minutes #39

Open
umdieecke opened this issue Feb 9, 2017 · 0 comments
Open

Speed & Time-Limit / stopping after some minutes #39

umdieecke opened this issue Feb 9, 2017 · 0 comments

Comments

@umdieecke
Copy link

umdieecke commented Feb 9, 2017

Hi there,
i am using ArchiveStream to deliver a large amount of files (test set is ~20 files with 500mb each). However it seems to be quite slow (about 500 - 1000 kb/s transfered from the server while a static download reaches about 5-6 mb/s). I'm not a 100 percent sure but can this be a problem from ArchiveStream?

Second issue is that the download stops after some time (it seems to stop after time not after having downloaded a specific amount of bytes), mostly after about 5 minutes (which is near the php max_execution_time).

This is the code i am using:

$zip = \Barracuda\ArchiveStream\Archive::instance_by_useragent("example", array(
	"large_files_only" => true
));															
foreach($files as $singleFile) {
	$zip->add_file_from_path(basename($singleFile), get_path($singleFile));
}			
$zip->finish();

any help would be highly appreciated, thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant