From af91768a24f1a9bca54099f6b5a30bb898edc5c8 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 29 Sep 2020 17:32:29 +0000 Subject: [PATCH] Increase rpc pubsub max payload to unblock large account notifications (#12548) (#12550) (cherry picked from commit 36d55c0667bbcf2eced4324eeb8e6a638cccadab) Co-authored-by: Justin Starry --- core/src/rpc_pubsub_service.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/rpc_pubsub_service.rs b/core/src/rpc_pubsub_service.rs index 64464904bb..f5e53fb1c7 100644 --- a/core/src/rpc_pubsub_service.rs +++ b/core/src/rpc_pubsub_service.rs @@ -1,7 +1,6 @@ //! The `pubsub` module implements a threaded subscription service on client RPC request use crate::{ - rpc::MAX_REQUEST_PAYLOAD_SIZE, rpc_pubsub::{RpcSolPubSub, RpcSolPubSubImpl}, rpc_subscriptions::RpcSubscriptions, }; @@ -45,7 +44,7 @@ impl PubSubService { session }) .max_connections(1000) // Arbitrary, default of 100 is too low - .max_payload(MAX_REQUEST_PAYLOAD_SIZE) + .max_payload(10 * 1024 * 1024 + 1024) // max account size (10MB) + extra (1K) .start(&pubsub_addr); if let Err(e) = server {