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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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 {