Browse Source

Update weed/pb/grpc_client_server.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7566/head
Chris Lu 5 days ago
committed by GitHub
parent
commit
cb060bdda4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/pb/grpc_client_server.go

2
weed/pb/grpc_client_server.go

@ -56,7 +56,7 @@ func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {
var options []grpc.ServerOption
options = append(options,
grpc.KeepaliveParams(keepalive.ServerParameters{
Time: GrpcKeepAliveTime, // wait time before ping if no activity
Time: GrpcKeepAliveTime, // server pings client if no activity for this long
Timeout: GrpcKeepAliveTimeout, // ping timeout
// MaxConnectionAge: 10 * time.Hour,
}),

Loading…
Cancel
Save