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

stream support isn't really streaming... #743

Open
fusionfoto opened this issue Dec 18, 2019 · 0 comments
Open

stream support isn't really streaming... #743

fusionfoto opened this issue Dec 18, 2019 · 0 comments

Comments

@fusionfoto
Copy link

It appears, that when wants to access a large (>5GB) object via stream...

$objectContent = $file->getContent();
$objectContent->rewind();
echo (stream_get_contents ($objectContent ->getStream(), 500000,0));

The entire file is pulled from the object store and written to /tmp before streaming can begin... so we are basically just opening a local file as a stream. Since Swift already supports offset calling, this request (seek, read to offset, etc) could actually be done by an autonomic call directly to swift. I'm not sure the library is adding any value here.

Has anyone else flagged this behavior and is this the way its "supposed" to be?

thanks in advance!

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