aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-20 02:53:22 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-20 02:53:22 -0700
commit978da73cdb651c8f3b95dfe38e60f49772c4db0b (patch)
tree4f94689f7453031dcebd8b709bbef937ae3e7945
parentebfab42a5090403e1f61e34c8c6fba731f61fea2 (diff)
downloadseaweedfs-978da73cdb651c8f3b95dfe38e60f49772c4db0b.tar.xz
seaweedfs-978da73cdb651c8f3b95dfe38e60f49772c4db0b.zip
revert this grpc related change
maybe related to https://github.com/chrislusf/seaweedfs/issues/1277
-rw-r--r--weed/pb/grpc_client_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.go
index 8418397b0..c4e35618f 100644
--- a/weed/pb/grpc_client_server.go
+++ b/weed/pb/grpc_client_server.go
@@ -40,7 +40,7 @@ func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {
}),
grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{
MinTime: 60 * time.Second, // min time a client should wait before sending a ping
- PermitWithoutStream: true,
+ PermitWithoutStream: false,
}),
grpc.MaxRecvMsgSize(Max_Message_Size),
grpc.MaxSendMsgSize(Max_Message_Size),
@@ -66,7 +66,7 @@ func GrpcDial(ctx context.Context, address string, opts ...grpc.DialOption) (*gr
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: 30 * time.Second, // client ping server if no activity for this long
Timeout: 20 * time.Second,
- PermitWithoutStream: true,
+ PermitWithoutStream: false,
}))
for _, opt := range opts {
if opt != nil {