From 05f29fe4daf6b62e48785b20e319e6ec42376013 Mon Sep 17 00:00:00 2001 From: Andreas Hellander Date: Fri, 13 Dec 2024 23:17:17 +0100 Subject: [PATCH] test --- fedn/network/clients/grpc_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fedn/network/clients/grpc_handler.py b/fedn/network/clients/grpc_handler.py index 9858c530..e94f2d8f 100644 --- a/fedn/network/clients/grpc_handler.py +++ b/fedn/network/clients/grpc_handler.py @@ -26,6 +26,7 @@ MAX_CONNECTION_IDLE_MS = 30000 MAX_CONNECTION_AGE_GRACE_MS = "INT_MAX" # keep connection open indefinitely CLIENT_IDLE_TIMEOUT_MS = 30000 +MAX_MESSAGE_LENGTH = 10 * 1024 * 1024 GRPC_OPTIONS = [ ("grpc.keepalive_time_ms", KEEPALIVE_TIME_MS), @@ -35,6 +36,8 @@ ("grpc.max_connection_idle_ms", MAX_CONNECTION_IDLE_MS), ("grpc.max_connection_age_grace_ms", MAX_CONNECTION_AGE_GRACE_MS), ("grpc.client_idle_timeout_ms", CLIENT_IDLE_TIMEOUT_MS), + ('grpc.max_send_message_length', MAX_MESSAGE_LENGTH), + ('grpc.max_receive_message_length', MAX_MESSAGE_LENGTH), ]