Skip to content

grpc-js: Avoid sending redundant RST_STREAMs from the client#2695

Merged
murgatroid99 merged 1 commit intogrpc:@grpc/grpc-js@1.10.xfrom
murgatroid99:grpc-js_avoid_extra_rst_stream
Mar 26, 2024
Merged

grpc-js: Avoid sending redundant RST_STREAMs from the client#2695
murgatroid99 merged 1 commit intogrpc:@grpc/grpc-js@1.10.xfrom
murgatroid99:grpc-js_avoid_extra_rst_stream

Conversation

@murgatroid99
Copy link
Copy Markdown
Member

Based on the hypothesis that #2625 is caused by RST_STREAM rate limiting (for rapid reset mitigation), this change reduces the chances of that by avoiding sending an RST_STREAM from the client when the server has already half-closed its side of the connection.

Copy link
Copy Markdown
Member

@sergiitk sergiitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was handling a similar-ish situation in java recently - preventing multiple RSTs when the on server failures. The difference in my case was needing to send a reset when our server transport failed for non-io reasons. grpc/grpc-java#11016

This LGTM, but let's chat for a few minutes before I approve this.

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.

4 participants