Skip to content
  • Krzysztof Dryś's avatar
    Don't log grpclb server ending connection as error (#2162) · 536e74e0
    Krzysztof Dryś authored
    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.
    536e74e0