allow using http connector for config server

This commit is contained in:
sijie.sun
2025-03-07 21:11:56 +08:00
committed by Sijie.Sun
parent 24213a874a
commit 745e44cc87
3 changed files with 19 additions and 6 deletions

View File

@@ -367,7 +367,7 @@ impl ManualConnectorManager {
for ip_version in ip_versions {
let ret = timeout(
// allow http connector to wait longer
std::time::Duration::from_secs(if dead_url.starts_with("http") { 20 } else { 1 }),
std::time::Duration::from_secs(if dead_url.starts_with("http") { 20 } else { 2 }),
Self::conn_reconnect_with_ip_version(
data.clone(),
dead_url.clone(),