Choose more appropriate options for pubsub websocket server (#8354) (#8492)

automerge
This commit is contained in:
mergify[bot]
2020-02-26 18:23:50 -08:00
committed by GitHub
parent 635a962fba
commit 77031000c4

View File

@ -37,6 +37,8 @@ impl PubSubService {
}); });
session 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); .start(&pubsub_addr);
if let Err(e) = server { if let Err(e) = server {