Increase rpc pubsub max payload to unblock large account notifications (#12548)
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
//! The `pubsub` module implements a threaded subscription service on client RPC request
|
//! The `pubsub` module implements a threaded subscription service on client RPC request
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
rpc::MAX_REQUEST_PAYLOAD_SIZE,
|
|
||||||
rpc_pubsub::{RpcSolPubSub, RpcSolPubSubImpl},
|
rpc_pubsub::{RpcSolPubSub, RpcSolPubSubImpl},
|
||||||
rpc_subscriptions::RpcSubscriptions,
|
rpc_subscriptions::RpcSubscriptions,
|
||||||
};
|
};
|
||||||
@ -45,7 +44,7 @@ impl PubSubService {
|
|||||||
session
|
session
|
||||||
})
|
})
|
||||||
.max_connections(1000) // Arbitrary, default of 100 is too low
|
.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);
|
.start(&pubsub_addr);
|
||||||
|
|
||||||
if let Err(e) = server {
|
if let Err(e) = server {
|
||||||
|
Reference in New Issue
Block a user