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

Abort HTTP/2 streams with RST_STREAM code CANCEL #552

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

timostamm
Copy link
Member

@timostamm timostamm commented Mar 29, 2023

The gRPC spec asks clients to send an RST_STREAM with code CANCEL for cancelled calls. gRPC servers will surface the gRPC code CANCELLED for such a request.

Our clients simply pass an AbortSignal to the Node.js http2 module, which sends an RST_STREAM with code INTERNAL_ERROR. For better interoperability, this changes our Node.js http2 clients to close streams with code CANCEL when canceled via an AbortSignal.

@timostamm timostamm requested a review from smaye81 March 29, 2023 20:38
@timostamm timostamm marked this pull request as ready for review March 29, 2023 20:38
@timostamm timostamm merged commit 028c8f9 into main Mar 29, 2023
@timostamm timostamm deleted the tstamm/node-h2-abort-with-rst-cancel branch March 29, 2023 22:12
@smaye81 smaye81 mentioned this pull request Apr 4, 2023
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