Increase rpc pubsub max payload to unblock large account notifications (#12548)

This commit is contained in:
Justin Starry 2020-09-30 00:09:39 +08:00 committed by GitHub
parent b51c0f3095
commit 36d55c0667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {