From 0a9b71ceff45b7373c550cf05cf8cc422fb11089 Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Pelayo Date: Fri, 21 Mar 2025 11:46:55 +0100 Subject: [PATCH] Don't stop grpc keepalives after 5 pings Otherwise the keepalive stops being effective and cloud load balancers will close the connection --- packages/jumpstarter/jumpstarter/common/grpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jumpstarter/jumpstarter/common/grpc.py b/packages/jumpstarter/jumpstarter/common/grpc.py index c686b2826..a2924db73 100644 --- a/packages/jumpstarter/jumpstarter/common/grpc.py +++ b/packages/jumpstarter/jumpstarter/common/grpc.py @@ -49,7 +49,7 @@ def _override_default_grpc_options(grpc_options: dict[str, str | int] | None) -> # we keep a low keepalive time to avoid idle timeouts on cloud load balancers ("grpc.keepalive_time_ms", 20000), ("grpc.keepalive_timeout_ms", 5000), - ("grpc.http2.max_pings_without_data", 5), + ("grpc.http2.max_pings_without_data", 0), ("grpc.keepalive_permit_without_calls", 1), ) options = dict(defaults)