chore: enable gRPC auto retries for transient Unavailable failures up to ~8s

This commit is contained in:
Pasha Sviderski
2025-12-23 18:54:08 +10:00
parent aa71ab0220
commit 4d97c30a9c
6 changed files with 35 additions and 0 deletions
+1
View File
@@ -66,6 +66,7 @@ func (c *WireGuardConnector) Connect(ctx context.Context) (*grpc.ClientConn, err
conn, err := grpc.NewClient(
machineAPIAddr,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultServiceConfig(defaultServiceConfig),
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
return c.tun.DialContext(ctx, "tcp", addr)
}),