mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-14 13:47:24 +08:00
make http connector timeout longer
http response may be slow, make its timeout longer.
This commit is contained in:
@@ -366,7 +366,8 @@ impl ManualConnectorManager {
|
||||
)));
|
||||
for ip_version in ip_versions {
|
||||
let ret = timeout(
|
||||
std::time::Duration::from_secs(1),
|
||||
// allow http connector to wait longer
|
||||
std::time::Duration::from_secs(if dead_url.starts_with("http") { 20 } else { 1 }),
|
||||
Self::conn_reconnect_with_ip_version(
|
||||
data.clone(),
|
||||
dead_url.clone(),
|
||||
|
||||
Reference in New Issue
Block a user