mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
allow 0 for socket_pool_size
This commit is contained in:
parent
73104a81aa
commit
2f6237c5e6
@ -292,12 +292,9 @@ impl VeilidConfig {
|
|||||||
|
|
||||||
async fn validate(&self) -> Result<(), String> {
|
async fn validate(&self) -> Result<(), String> {
|
||||||
let inner = self.inner.read();
|
let inner = self.inner.read();
|
||||||
if inner.network.protocol.udp.enabled {
|
// if inner.network.protocol.udp.enabled {
|
||||||
// Validate UDP settings
|
// // Validate UDP settings
|
||||||
if inner.network.protocol.udp.socket_pool_size == 0 {
|
// }
|
||||||
return Err("UDP socket pool size must be > 0 in config key 'network.protocol.udp.socket_pool_size'".to_owned());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if inner.network.protocol.tcp.listen {
|
if inner.network.protocol.tcp.listen {
|
||||||
// Validate TCP settings
|
// Validate TCP settings
|
||||||
if inner.network.protocol.tcp.max_connections == 0 {
|
if inner.network.protocol.tcp.max_connections == 0 {
|
||||||
|
@ -862,9 +862,16 @@ impl Settings {
|
|||||||
.to_string_lossy()
|
.to_string_lossy()
|
||||||
.to_string(),
|
.to_string(),
|
||||||
)),
|
)),
|
||||||
"network.protocol.wss.url" => {
|
"network.protocol.wss.url" => Ok(Box::new(
|
||||||
Ok(Box::new(inner.core.network.protocol.wss.url.clone()))
|
inner
|
||||||
}
|
.core
|
||||||
|
.network
|
||||||
|
.protocol
|
||||||
|
.wss
|
||||||
|
.url
|
||||||
|
.as_ref()
|
||||||
|
.map(|a| a.urlstring.clone()),
|
||||||
|
)),
|
||||||
"network.leases.max_server_signal_leases" => {
|
"network.leases.max_server_signal_leases" => {
|
||||||
Ok(Box::new(inner.core.network.leases.max_server_signal_leases))
|
Ok(Box::new(inner.core.network.leases.max_server_signal_leases))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user