From cb9b19fc9f4bb80eaf3cd8073bda8becebe5feff Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Tue, 22 Aug 2023 15:11:40 -0400 Subject: [PATCH] up connection limits for ws --- veilid-flutter/lib/default_config.dart | 4 ++-- veilid-server/src/settings.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/veilid-flutter/lib/default_config.dart b/veilid-flutter/lib/default_config.dart index 2c495d74..660722cd 100644 --- a/veilid-flutter/lib/default_config.dart +++ b/veilid-flutter/lib/default_config.dart @@ -173,14 +173,14 @@ Future getDefaultVeilidConfig(String programName) async { ws: VeilidConfigWS( connect: true, listen: !kIsWeb, - maxConnections: 16, + maxConnections: 32, listenAddress: '', path: 'ws', ), wss: VeilidConfigWSS( connect: true, listen: false, - maxConnections: 16, + maxConnections: 32, listenAddress: '', path: 'ws', ), diff --git a/veilid-server/src/settings.rs b/veilid-server/src/settings.rs index 4066e59e..631e405a 100644 --- a/veilid-server/src/settings.rs +++ b/veilid-server/src/settings.rs @@ -143,14 +143,14 @@ core: ws: connect: true listen: true - max_connections: 16 + max_connections: 32 listen_address: '' path: 'ws' # url: 'ws://localhost:5150/ws' wss: connect: true listen: false - max_connections: 16 + max_connections: 32 listen_address: '' path: 'ws' # url: '' @@ -1686,7 +1686,7 @@ mod tests { // assert_eq!(s.core.network.protocol.ws.connect, true); assert_eq!(s.core.network.protocol.ws.listen, true); - assert_eq!(s.core.network.protocol.ws.max_connections, 16); + assert_eq!(s.core.network.protocol.ws.max_connections, 32); assert_eq!(s.core.network.protocol.ws.listen_address.name, ""); assert_eq!(s.core.network.protocol.ws.listen_address.addrs, vec![]); assert_eq!( @@ -1697,7 +1697,7 @@ mod tests { // assert_eq!(s.core.network.protocol.wss.connect, true); assert_eq!(s.core.network.protocol.wss.listen, false); - assert_eq!(s.core.network.protocol.wss.max_connections, 16); + assert_eq!(s.core.network.protocol.wss.max_connections, 32); assert_eq!(s.core.network.protocol.wss.listen_address.name, ""); assert_eq!(s.core.network.protocol.wss.listen_address.addrs, vec![]); assert_eq!(