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

Surface io.EOF errors as io.ErrUnexpectedEOF for gRPC #539

Merged
merged 4 commits into from
Jun 30, 2023

Conversation

emcfarlane
Copy link
Contributor

@emcfarlane emcfarlane commented Jun 29, 2023

Cover the gRPC and gRPC-Web protocols in the tests for io.ErrUnexpectedEOF, and ensure that error codes and observable errors.Is behavior is consistent for all 3 supported RPC protocols.

@emcfarlane emcfarlane self-assigned this Jun 29, 2023
connect_ext_test.go Outdated Show resolved Hide resolved
connect_ext_test.go Outdated Show resolved Hide resolved
Copy link
Member

@akshayjshah akshayjshah left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for making all the protocols behave consistently, and sorry for being a bit of a stickler.

@akshayjshah akshayjshah changed the title Add EOF tests for all supported protocols Capture unexpected io.EOF errors as io.ErrUnexpectedEOF for gRPC Jun 30, 2023
@akshayjshah akshayjshah changed the title Capture unexpected io.EOF errors as io.ErrUnexpectedEOF for gRPC Surface io.EOF errors as io.ErrUnexpectedEOF for gRPC Jun 30, 2023
@akshayjshah akshayjshah changed the title Surface io.EOF errors as io.ErrUnexpectedEOF for gRPC Surface io.EOF errors as io.ErrUnexpectedEOF for gRPC Jun 30, 2023
@emcfarlane emcfarlane merged commit 0849a37 into main Jun 30, 2023
9 checks passed
@emcfarlane emcfarlane deleted the emcfarlane/test-grpc-eof branch June 30, 2023 09:36
akshayjshah pushed a commit that referenced this pull request Jul 26, 2023
Cover the gRPC and gRPC-Web protocols in the tests for
`io.ErrUnexpectedEOF`, and ensure that error codes and observable
`errors.Is` behavior is consistent for all 3 supported RPC protocols.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants