From e743414908d332542b2518f5e42f207a8c1862dc Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 27 Feb 2020 08:54:53 +0800 Subject: [PATCH] Choose more appropriate options for pubsub websocket server (#8354) * Choose more sensible options for pubsub websocket server * Increase max payload size for pubsub service --- 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 {