Skip to content

netty: Count sent RST_STREAMs against limit #12277

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

Merged
merged 1 commit into from
Aug 18, 2025
Merged

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Aug 14, 2025

Http2RstCounterEncoder has to be constructed before NettyServerHandler/Http2ConnectionHandler so it must be static. Thus the code/counters were moved into RstStreamCounter which then can be constructed earlier and shared.

This depends on Netty 4.1.124 for a bug fix to actually call the encoder:
netty/netty@be53dc3

Http2RstCounterEncoder has to be constructed before
NettyServerHandler/Http2ConnectionHandler so it must be static. Thus the
code/counters were moved into RstStreamCounter which then can be
constructed earlier and shared.

This depends on Netty 4.1.124 for a bug fix to actually call the
encoder:
netty/netty@be53dc3
@ejona86 ejona86 requested a review from kannanjgithub August 14, 2025 22:27
@ejona86 ejona86 added the TODO:release blocker Issue/PR is important enough to delay the release. Removed after release issues resolved label Aug 14, 2025
@ejona86 ejona86 merged commit 6462ef9 into grpc:master Aug 18, 2025
16 checks passed
@ejona86 ejona86 deleted the netty-sentrst branch August 18, 2025 14:23
@ejona86 ejona86 added TODO:backport PR needs to be backported. Removed after backport complete and removed TODO:release blocker Issue/PR is important enough to delay the release. Removed after release issues resolved labels Aug 18, 2025
kannanjgithub pushed a commit that referenced this pull request Aug 19, 2025
Http2RstCounterEncoder has to be constructed before NettyServerHandler/Http2ConnectionHandler so it must be static. Thus the
code/counters were moved into RstStreamCounter which then can be constructed earlier and shared.

This depends on Netty 4.1.124 for a bug fix to actually call the encoder:

netty/netty@be53dc3

Backport of #12277
@kannanjgithub kannanjgithub removed the TODO:backport PR needs to be backported. Removed after backport complete label Aug 19, 2025
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.

2 participants