Skip to content

Close client request stream on error and end #1410

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

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented May 24, 2022

Motivation:

It's possible to write messages on the client request stream after the
RPC has closed. It shouldn't be.

Modifications:

  • Close the request stream on end and on error for client streaming and
    bidirectional streaming rpcs

Result:

Callers can't write to a request stream after an RPC has finished.

Motivation:

It's possible to write messages on the client request stream after the
RPC has closed. It shouldn't be.

Modifications:

- Close the request stream on end and on error for client streaming and
  bidirectional streaming rpcs

Result:

Callers can't write to a request stream after an RPC has finished.
@glbrntt glbrntt requested a review from fabianfett May 24, 2022 08:42
Copy link
Collaborator

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

LGTM

@glbrntt glbrntt merged commit 6c50a87 into grpc:1.7.1-async-await May 24, 2022
@glbrntt glbrntt deleted the gb-failed-rpc-does-not-cancel-req-stream branch May 24, 2022 09:56
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jun 13, 2022
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