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

2024-11-08 weekly sync #458

Merged
merged 6 commits into from
Nov 8, 2024
Merged

2024-11-08 weekly sync #458

merged 6 commits into from
Nov 8, 2024

Conversation

gumpt
Copy link
Contributor

@gumpt gumpt commented Nov 8, 2024

No description provided.

drcaramelsyrup and others added 6 commits November 1, 2024 16:14
Certain APIs consuming HTTPTasks want to know if the response has
finished. However, in cases such as protocol errors the h2 RecvStream
will return `is_end_stream` which may be associated with an HTTPTask
that was not actually the end of stream. This affects systems such as
caching which wants to know when the response has properly finished for
finishing a cache miss.

This change attempts to check if the stream has ended due to an h2 error
or not to forward a successful or Failed HTTPTask as appropriate.
The rust 2021 use rust version is 1.56.0, `matches` included in the
standard library prelude and thus is automatically in scope.

Includes-commit: ebc6cbf
Replicated-from: #414
Signed-off-by: Xiaobo Liu <[email protected]>
This change takes the existing API for ListenerEndpoint and modifies it to use a typical idiomatic builder style.

There are additional improvements which I feel can be made here, but I believe that it would be better to do them in subsequent commits in order to keep changes as incremental as possible.

In particular, I think that making socket options into sub-builder is probably a good move.
Currently the meta is attempted to be logged in a hit span that may or
may not exist (or has not started) depending on the cache phase.
@gumpt gumpt merged commit bdb13a7 into main Nov 8, 2024
5 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.

5 participants