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

Server shouldn't Fatalf in case it fails to encode. #1251

Merged
merged 3 commits into from
Jun 1, 2017

Conversation

MakMukhi
Copy link
Contributor

@MakMukhi MakMukhi commented May 19, 2017

fixes #532

defer te.tearDown()
te.customCodec = nil
tc := testpb.NewTestServiceClient(te.clientConn())
// Failure case.
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment like "should not panic"

}

func (c *errCodec) String() string {
return "proto"
Copy link
Contributor

Choose a reason for hiding this comment

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

return "near-misses"

@MakMukhi MakMukhi merged commit d5bc85c into grpc:master Jun 1, 2017
MakMukhi added a commit that referenced this pull request Jun 1, 2017
MakMukhi added a commit that referenced this pull request Jun 1, 2017
@menghanl menghanl added 1.4 and removed 1.4 labels Jun 7, 2017
@MakMukhi MakMukhi deleted the dont_panic branch May 4, 2018 02:02
@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server nil returns cause problems
3 participants