-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
kind/enhancementSomething could be better.Something could be better.
Description
I have a Go server exposing a REST API, using Dgraph as my database.
I create a single grpc connection once and reuse the dgo client during the entire service lifespan.
Whenever my server app is idle for too long, I get the following error during my next query or mutation:
rpc error: code = Unavailable desc = transport is closing
If I retry, it works again. So it seems the Dgraph server is closing the connection without the dgo client knowing about it.
Is this a dgo, a grpc problem or a Dgraph bug?
Tested with Dgraph v1.0.9 and v1.0.10
google.golang.org/grpc v1.16.0
github.com/dgraph-io/dgo v0.0.0-20181102011806-23d7ac35e2c7
Metadata
Metadata
Assignees
Labels
kind/enhancementSomething could be better.Something could be better.