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

client: do not expose trailer if client cancels RPC before receiving its status #2554

Merged
merged 6 commits into from
Jan 14, 2019
Merged

client: do not expose trailer if client cancels RPC before receiving its status #2554

merged 6 commits into from
Jan 14, 2019

Conversation

canguler
Copy link

@canguler canguler commented Jan 9, 2019

No description provided.

@canguler canguler assigned dfawley and canguler and unassigned canguler and dfawley Jan 10, 2019
Can Guler added 2 commits January 10, 2019 15:03
…r returns a ContextError. Instead, it returns the error from the last try.
@canguler canguler assigned dfawley and unassigned canguler Jan 11, 2019
test/context_canceled_test.go Outdated Show resolved Hide resolved
test/context_canceled_test.go Outdated Show resolved Hide resolved
@dfawley dfawley assigned canguler and unassigned dfawley Jan 12, 2019
@canguler canguler assigned dfawley and unassigned canguler Jan 14, 2019
Copy link
Member

@dfawley dfawley left a comment

Choose a reason for hiding this comment

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

Thanks!

}
}

func cntPermissionDenied(cntTotal, cntCanceled uint) uint {
Copy link
Member

Choose a reason for hiding this comment

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

since this isn't used elsewhere, how about making it a lambda in the current test:

var i, cntCanceled uint
permDenied := func() uint { return i - cntCanceled }
for ....

@canguler canguler merged commit 9e7c146 into grpc:master Jan 14, 2019
@menghanl menghanl added this to the 1.18 Release milestone Jan 15, 2019
@dfawley dfawley changed the title Clears transport stream's trailer, if the stream didn't end successfully. client: do not expose trailer if client cancels RPC before receiving its status Jan 15, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants