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

Fixup POST pipeline support #442

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Fixup POST pipeline support #442

merged 2 commits into from
Dec 18, 2024

Conversation

mtrudel
Copy link
Owner

@mtrudel mtrudel commented Dec 17, 2024

Previously this field represented the bytes still to read off the wire, as opposed to the bytes still required per the request's content length. This made it hard to support cases where we wanted to maintain a buffer
of pipelined requests after the current request's body (previously, we just errored loudly on this in the assumption that it represented an intentionally misbehaving client).

Fix this by using an undefined_content_length parameter on HTTP/1 requests that instead represents the pending bytes on this request so that we can more easily handle the case where the socket buffer contains bytes belonging to the subsequent request.

@woylie relevant to your interests

Previously this field represented the bytes still to read off the wire,
as opposed to the bytes still required per the request's content length.
This made it hard to support cases where we *wanted* to maintain a buffer
of pipelined requests after the current request's body (previously, we
just errored loudly on this in the assumption that it represented an
intentionally misbehaving client).

Fix this by using an `undefined_content_length` parameter on HTTP/1
requests that instead represents the pending bytes *on this request* so
that we can more easily handle the case where the socket buffer contains
bytes belonging to the subsequent request
@mtrudel mtrudel changed the title Fixup post pipeline support Fixup POST pipeline support Dec 18, 2024
@mtrudel mtrudel merged commit 4ea5442 into main Dec 18, 2024
25 of 27 checks passed
@mtrudel mtrudel deleted the fixup_post_pipeline_support branch December 18, 2024 15:36
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.

1 participant