-
Notifications
You must be signed in to change notification settings - Fork 328
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
handling and returning valid error code for context.Canceled and cont… #294
Conversation
…ext.DeadlineExceeded error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Let's release this as v7.2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The behavior change LGTM, but the tests are too far removed from how Twirp gets used in production. The tests should verify that we get the right behavior higher up in the stack, and demonstrate to readers (including our future selves) what that high-level behavior is.
…exceed error checking outside body read error
… inside read body call fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for restructuring and expanding the test code. I don't think that any of my remaining comments are deal-breakers. They'd be good to change, but don't need another round of review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ext.DeadlineExceeded error
*Issue #, if available: #293
Description of changes:
Proper error code return in case of context.Canceled (Error code will be returned twirp.Canceled) and context.DeadlineExceeded (Error code will be returned twirp. DeadlineExceeded), instead of 5xx 'Unexpected EOF'
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.