-
Notifications
You must be signed in to change notification settings - Fork 108
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
Drain stream and error on trailing data #536
Conversation
df2f8da
to
b73bc7f
Compare
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.
Seems reasonable enough to me!
Block on https://github.com/bufbuild/connect-go/pull/539 need to expand these testcases for grpc and grpc-web. |
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.
One test nit, otherwise LGTM! Please add the error checks, but then this is good to land from my perspective.
For connect and gRPC-web on receiving end of stream payloads ensure no extra data is written by draining the reader and erroring on more data. Extension of https://github.com/bufbuild/connect-go/pull/533 Fixes https://github.com/bufbuild/connect-go/issues/427
For connect and gRPC-web on receiving end of stream payloads ensure no extra data is written by draining the reader and erroring on more data.
Extension of #533
Fixes #427