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

fix a few issues in grpc gateway #6032

Merged
merged 4 commits into from
Jul 25, 2016
Merged

fix a few issues in grpc gateway #6032

merged 4 commits into from
Jul 25, 2016

Conversation

xiang90
Copy link
Contributor

@xiang90 xiang90 commented Jul 23, 2016

Fix #5865

/cc @gyuho Give this a try?

@@ -103,6 +103,9 @@ func request_Watch_Watch_0(ctx context.Context, marshaler runtime.Marshaler, cli
handleSend := func() error {
var protoReq WatchRequest
err = dec.Decode(&protoReq)
if err == io.EOF {
return err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gyuho i feel here it should return nil instead of err? no?

@gyuho
Copy link
Contributor

gyuho commented Jul 24, 2016

Yeah I asked here grpc-ecosystem/grpc-gateway#195 (comment).

The server side error is gone, but it still returns before the gateway sends the stream, because it returns for io.EOF. I changed it to return nil for err == io.EOF and it works as expected. Will ask about it to grpc-ecosystem.

@xiang90 xiang90 merged commit 0d6c028 into etcd-io:master Jul 25, 2016
@xiang90 xiang90 deleted the gateway branch July 25, 2016 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants