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: Close Jetty h2 streams with RST_STREAM and no error code #6424

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

niloc132
Copy link
Member

This is a Jetty-specific workaround to avoid irritating the Python gRPC
client into failing calls that had already half-closed successfully.

Since we're now using ServletOutputStream.close() in place of AsyncContext.complete(), we need to apply the same wrapping for trailers to close() - that is, when the stream is clsoed, we can't rely on the servlet container sending our trailers because grpc-web trailers are actually a DATA frame which must be explicitly written.

See #6400
Fixes #5996
Reapplies #6401

@niloc132 niloc132 modified the milestones: 0.37.1, 0.38.0 Nov 26, 2024
@niloc132 niloc132 merged commit 35f1030 into deephaven:main Nov 26, 2024
29 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pydeephaven clients can get a RST_STREAM with CANCELLED error in some cases
2 participants