From 262d2ef811a857dff99b9a4236da92f4730b1689 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 27 Jun 2024 11:53:33 +0400 Subject: [PATCH] Increase dial bot timeout from 120 seconds to 21 minutes 20 seconds --- clients/agentgrpc/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/agentgrpc/client.go b/clients/agentgrpc/client.go index 9fd4a5fe..2d3e5bd3 100644 --- a/clients/agentgrpc/client.go +++ b/clients/agentgrpc/client.go @@ -56,12 +56,12 @@ func (client *client) DialWithRetry(cfg config.AgentConfig) error { conn *grpc.ClientConn err error ) - for i := 0; i < 10; i++ { + for i := 0; i < 40; i++ { conn, err = grpc.Dial( fmt.Sprintf("%s:%s", cfg.ContainerName(), cfg.GrpcPort()), grpc.WithInsecure(), grpc.WithBlock(), - grpc.WithTimeout(10*time.Second), + grpc.WithTimeout(30*time.Second), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(defaultAgentResponseMaxByteCount)), ) if err == nil {