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

Fix chunking error when content length is not provided by the backend #1058

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

Keksoj
Copy link
Contributor

@Keksoj Keksoj commented Jan 8, 2024

In niche cases, when a backend does not provide infos on Content-Length, Sōzu closes an HTTP session without transmitting all data to the client. This results, for instance, in incomplete images in websites served by Sōzu.

This PR fixes this issue by checking if there is still data to transmit, even if the backend has gone silent.

Keksoj and others added 2 commits January 8, 2024 15:07
this solves an error where payload was partially transmitted

Co-Authored-By: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
Co-Authored-By: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
@FlorentinDUBOIS FlorentinDUBOIS merged commit aea3ccf into main Jan 24, 2024
12 checks passed
@FlorentinDUBOIS FlorentinDUBOIS deleted the debug-kawa-http-chunking-error branch January 24, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants