diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-01-18 00:24:40 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-01-18 00:24:40 -0800 |
| commit | e84dcb0bfe2a241f76f66f18b5b85741ee6a805e (patch) | |
| tree | 4ea675c2d7447e852f9863278e5aaac0fbea9ce8 /weed | |
| parent | 1d103e3ed54d0e5cf17dbc489ba412ce96c88a20 (diff) | |
| download | seaweedfs-e84dcb0bfe2a241f76f66f18b5b85741ee6a805e.tar.xz seaweedfs-e84dcb0bfe2a241f76f66f18b5b85741ee6a805e.zip | |
fix timeout issue, but can not reproduce with local built binaries
fix https://github.com/chrislusf/seaweedfs/issues/841
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/util/grpc_client_server.go | 4 |
1 files 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 |
