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

Buffer upstream responses in handle_response #16

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

timfennis
Copy link
Contributor

So, this isn't a serious pull request because there are probably better ways of doing this. We ran into an issue using this library to talk to php-fpm where PHP likes to send its responses in multiple chunks. The current implementation only gives us the last chunk to work with.

Another way to work around this is using the new execute_stream function on client but it seems to me like the regular execute method should have a better default.

Anyways I hope this PR is an effective way to communicate the issue we're having and helps you potentially fix this.

@jmjoy
Copy link
Owner

jmjoy commented Jun 28, 2023

This implementation should be more reasonable, thanks!

Please format.

@timfennis timfennis force-pushed the feature/buffer-and-append-streams branch from 53052b0 to 6b0200a Compare June 30, 2023 06:38
@jmjoy jmjoy merged commit e91c249 into jmjoy:master Jun 30, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants