From e84dcb0bfe2a241f76f66f18b5b85741ee6a805e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 18 Jan 2019 00:24:40 -0800 Subject: [PATCH] fix timeout issue, but can not reproduce with local built binaries fix https://github.com/chrislusf/seaweedfs/issues/841 --- weed/util/grpc_client_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/util/grpc_client_server.go b/weed/util/grpc_client_server.go index d487e8bb4..f80d71f29 100644 --- a/weed/util/grpc_client_server.go +++ b/weed/util/grpc_client_server.go @@ -25,8 +25,8 @@ func NewGrpcServer() *grpc.Server { } func GrpcDial(address string, opts ...grpc.DialOption) (*grpc.ClientConn, error) { - opts = append(opts, grpc.WithBlock()) - opts = append(opts, grpc.WithTimeout(time.Duration(5*time.Second))) + // opts = append(opts, grpc.WithBlock()) + // opts = append(opts, grpc.WithTimeout(time.Duration(5*time.Second))) opts = append(opts, grpc.WithInsecure()) opts = append(opts, grpc.WithKeepaliveParams(keepalive.ClientParameters{ Time: 30 * time.Second, // client ping server if no activity for this long