Thanks to visit codestin.com
Credit goes to github.com

Skip to content

proxy/grpc: fix client streaming bug (EOF not sent to the server) #2011

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

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

ben-toogood
Copy link
Contributor

No description provided.

return nil
} else if err != nil {
// send the message to the stream
if err := req.Codec().Write(msg, nil); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

why don't we care about EOF error here? Because it's a write and not a read?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, if we're writing information then we shouldn't get an EOF error. That should only be returned when reading from a stream.

@ben-toogood ben-toogood merged commit 8975184 into master Sep 18, 2020
@ben-toogood ben-toogood deleted the bugfix/grpc-client-stream branch September 18, 2020 13:20
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.

2 participants