google-cloud-go: http2Client.notifyError every 4 minutes when using gcd

http2Client.notifyError got notified that the client transport was broken EOF

Is this normal? How to fix/get rid of this?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I believe it’s the google frontend server that is closing this connection after 4 minutes of inactivity, after which the grpc client reconnects automatically. This is expected behavior. The grpc client logging seems unnecessary (but maybe still useful?) since the reconnection is automatically handled under the covers.

I realize this issue has been closed, but thought i’d add: if you want to filter out these messages you can set the grpc logger to write somewhere else (not stderr) - different file? drop all together?

https://godoc.org/google.golang.org/grpc/grpclog

You should be able to do something like:

import (
    "log"
    "google.golang.org/grpc/grpclog"
)

func init() {
    var myGRPCLogger grpclog.Logger = log.New(myIOWriter, "", log.LstdFlags)
    grpclog.SetLogger(myGRPCLogger)
}