commit | 536e74e045bc4dbf4445506674d1573a6aa9dd56 | [log] [tgz] |
---|---|---|
author | Krzysztof DryĆ <krzysztofdrys@users.noreply.github.com> | Tue Jun 19 23:54:40 2018 +0200 |
committer | Menghan Li <menghanl@google.com> | Tue Jun 19 14:54:40 2018 -0700 |
tree | a2ed693964ce8730c61329e1e67272ba5ce30625 | |
parent | b28608a9dbfcc585a10c13222c50cfeb50b7ac7a [diff] |
Don't log grpclb server ending connection as error (#2162) Fixes https://github.com/grpc/grpc-go/issues/2161 I introduced `serverTerminatedConnectionErr `, because I wanted `callRemoteBalancer` to still returns error on a terminated connections. Its client, which is function `watchRemoteBalancer` can decide how to log this error. When remote grpclb-server terminates the connection, don't log it as error. Instead, log it as info. It is natural for servers to terminate long lived grpc streaming connections. Two sample reasons to do this are: load balancing and deployment of a new version. Therefore client of grpclb-server shouldn't recognise this situation as an error.
The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the gRPC Quick Start: Go guide.
To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run:
$ go get -u google.golang.org/grpc
This requires Go 1.6 or later. Go 1.7 will be required soon.
The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the list, you need a discussion with gRPC-Go authors and consultants.
See API documentation for package and API descriptions and find examples in the examples directory.
See the current benchmarks for some of the languages supported in this dashboard.
General Availability Google Cloud Platform Launch Stages.
Please update proto package, gRPC package and rebuild the proto files:
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u google.golang.org/grpc
protoc --go_out=plugins=grpc:. *.proto