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

[Bugfix] Trully stream data from iterable #5134

Closed

Conversation

rldhont
Copy link
Collaborator

@rldhont rldhont commented Dec 17, 2024

GuzzleHttp\Psr7\Utils::streamFor is building a PumpStream for callable resource and requested the resource with and length to building the data as string step by step.

Because, lizmap builds a stream with a function without the length parameter, all the content is build as string before sending it to output.

Try to fix it, by providing a function with the length parameter around our iterator.

@rldhont rldhont added run end2end If the PR must run end2end tests or not php Pull requests that update Php code backport release_3_7 backport release_3_8 backport release_3_9 labels Dec 17, 2024
@github-actions github-actions bot added this to the 3.10.0 milestone Dec 17, 2024
`GuzzleHttp\Psr7\Utils::streamFor` is building a PumpStream for callable resource and requested the resource with and length to building the data as string step by step.

Because, lizmap builds a stream with a function without the length parameter, all the content is build as string before sending it to output.

Try to fix it, by providing a function with the length parameter around our iterator.
@rldhont rldhont force-pushed the fix-ogcresponse-really-stream-data branch from dbd07d2 to 3f63e38 Compare December 17, 2024 13:31
@rldhont rldhont marked this pull request as draft December 17, 2024 16:10
@rldhont rldhont closed this Dec 19, 2024
@rldhont rldhont deleted the fix-ogcresponse-really-stream-data branch December 20, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_3_7 backport release_3_8 backport release_3_9 php Pull requests that update Php code run end2end If the PR must run end2end tests or not
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant