Skip to content

Commit

Permalink
Include change from #19701.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Mar 23, 2023
1 parent 3607176 commit 00ae241
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vault/request_forwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/hashicorp/vault/vault/replication"
"golang.org/x/net/http2"
"google.golang.org/grpc"
"google.golang.org/grpc/backoff"
"google.golang.org/grpc/keepalive"
)

Expand Down Expand Up @@ -288,7 +289,10 @@ func (c *Core) refreshRequestForwardingConnection(ctx context.Context, clusterAd
),
}
if c.grpcMinConnectTimeout != 0 {
opts = append(opts, grpc.WithConnectParams(grpc.ConnectParams{MinConnectTimeout: c.grpcMinConnectTimeout}))
opts = append(opts, grpc.WithConnectParams(grpc.ConnectParams{
MinConnectTimeout: c.grpcMinConnectTimeout,
Backoff: backoff.DefaultConfig,
}))
}
c.rpcClientConn, err = grpc.DialContext(dctx, clusterURL.Host, opts...)
if err != nil {
Expand Down

0 comments on commit 00ae241

Please sign in to comment.