diff --git a/vnt/src/core/conn.rs b/vnt/src/core/conn.rs index dfad263..22cc3f6 100644 --- a/vnt/src/core/conn.rs +++ b/vnt/src/core/conn.rs @@ -313,7 +313,7 @@ impl VntInner { let client_cipher = client_cipher.clone(); let server_cipher = server_cipher.clone(); //延迟启动 - scheduler.timeout(Duration::from_secs(3), move |scheduler| { + scheduler.timeout(Duration::from_secs(1), move |scheduler| { start( scheduler, context, diff --git a/vnt/src/handle/maintain/idle.rs b/vnt/src/handle/maintain/idle.rs index f36a26a..0e4edcd 100644 --- a/vnt/src/handle/maintain/idle.rs +++ b/vnt/src/handle/maintain/idle.rs @@ -50,7 +50,7 @@ pub fn idle_gateway( &mut connect_count, &handshake, ); - let rs = scheduler.timeout(Duration::from_secs(5), move |s| { + let rs = scheduler.timeout(Duration::from_secs(8), move |s| { idle_gateway( s, context,