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

Add support for RPC cancellation #13

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Oct 10, 2024

Motivation:

grpc-swift has support for RPC cancellation via a cancellation handler. It should be supported here as well.

Modifications:

  • Modify the server stream handler so that it holds the cancellation handle and triggers cancellation appropriately.
  • Modify the server stream handling to set a cancellation handle on the appropriate stream handler.
  • Update tests

Result:

HTTP/2 server transport respects stream cancellation

Motivation:

grpc-swift has support for RPC cancellation via a cancellation handler.
It should be supported here as well.

Modifications:

- Modify the server stream handler so that it holds the cancellation
  handle and triggers cancellation appropriately.
- Modify the server stream handling to set a cancellation handle on the
  appropriate stream handler.
- Update tests

Result:

HTTP/2 server transport respects stream cancellation
@glbrntt glbrntt requested a review from gjcairo October 10, 2024 10:15
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Oct 10, 2024
@glbrntt glbrntt requested a review from gjcairo October 15, 2024 10:23
Copy link
Collaborator

@gjcairo gjcairo left a comment

Choose a reason for hiding this comment

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

Great, thanks George!

@gjcairo gjcairo merged commit 4d5d6fe into grpc:main Oct 15, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants