From 77031000c43ee3b6e18b1f06e5c5bb08fa06ece2 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2020 18:23:50 -0800 Subject: [PATCH] Choose more appropriate options for pubsub websocket server (#8354) (#8492) automerge --- core/src/rpc_pubsub_service.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/rpc_pubsub_service.rs b/core/src/rpc_pubsub_service.rs index c1c5fee152..98b80ee93b 100644 --- a/core/src/rpc_pubsub_service.rs +++ b/core/src/rpc_pubsub_service.rs @@ -37,6 +37,8 @@ impl PubSubService { }); session }) + .max_connections(1000) // Arbitrary, default of 100 is too low + .max_payload(10 * 1024 * 1024 + 1024) // max account size (10MB) + extra (1K) .start(&pubsub_addr); if let Err(e) = server {