536e74e045
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. |
||
---|---|---|
.. | ||
base | ||
grpclb | ||
roundrobin | ||
balancer.go |