调整超时时间
This commit is contained in:
@@ -313,7 +313,7 @@ impl VntInner {
|
|||||||
let client_cipher = client_cipher.clone();
|
let client_cipher = client_cipher.clone();
|
||||||
let server_cipher = server_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(
|
start(
|
||||||
scheduler,
|
scheduler,
|
||||||
context,
|
context,
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ pub fn idle_gateway<Call: VntCallback>(
|
|||||||
&mut connect_count,
|
&mut connect_count,
|
||||||
&handshake,
|
&handshake,
|
||||||
);
|
);
|
||||||
let rs = scheduler.timeout(Duration::from_secs(5), move |s| {
|
let rs = scheduler.timeout(Duration::from_secs(8), move |s| {
|
||||||
idle_gateway(
|
idle_gateway(
|
||||||
s,
|
s,
|
||||||
context,
|
context,
|
||||||
|
|||||||
Reference in New Issue
Block a user