increase grpc timeouts

This commit is contained in:
Pascal Fischer
2025-03-14 10:25:53 +01:00
parent c262c1b252
commit 1dca0ab404
2 changed files with 7 additions and 12 deletions

View File

@@ -71,18 +71,15 @@ func CreateConnection(addr string, tlsEnabled bool) (*grpc.ClientConn, error) {
}))
}
connCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
conn, err := grpc.DialContext(
connCtx,
context.Background(),
addr,
transportOption,
WithCustomDialer(),
grpc.WithBlock(),
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: 30 * time.Second,
Timeout: 10 * time.Second,
Time: 10 * time.Minute,
Timeout: 5 * time.Minute,
}),
)
if err != nil {