From 2159c92220652bcae7d9ea78ede99ce383c71900 Mon Sep 17 00:00:00 2001 From: Rafael Chacon Date: Wed, 26 Aug 2020 14:05:45 -0400 Subject: [PATCH] Updates enforcement policy to match the one from the client Signed-off-by: Rafael Chacon --- go/vt/servenv/grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/servenv/grpc_server.go b/go/vt/servenv/grpc_server.go index 1905d89bf0d..842f583bbdd 100644 --- a/go/vt/servenv/grpc_server.go +++ b/go/vt/servenv/grpc_server.go @@ -86,7 +86,7 @@ var ( // EnforcementPolicy MinTime that sets the keepalive enforcement policy on the server. // This is the minimum amount of time a client should wait before sending a keepalive ping. - GRPCKeepAliveEnforcementPolicyMinTime = flag.Duration("grpc_server_keepalive_enforcement_policy_min_time", 5*time.Minute, "gRPC server minimum keepalive time") + GRPCKeepAliveEnforcementPolicyMinTime = flag.Duration("grpc_server_keepalive_enforcement_policy_min_time", 10*time.Second, "gRPC server minimum keepalive time") // EnforcementPolicy PermitWithoutStream - If true, server allows keepalive pings // even when there are no active streams (RPCs). If false, and client sends ping when