Skip to content

Commit

Permalink
Increase dial bot timeout from 120 seconds to 21 minutes 20 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeysil committed Jun 27, 2024
1 parent cdfee8a commit 262d2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/agentgrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 262d2ef

Please sign in to comment.