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

* Choose more sensible options for pubsub websocket server

* Increase max payload size for pubsub service
This commit is contained in:
Justin Starry
2020-02-27 08:54:53 +08:00
committed by GitHub
parent f6f0f94e17
commit e743414908

View File

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