Parcourir la source

fix: set keepalive_intvl to 3s

Yujia Qiao il y a 4 ans
Parent
commit
9ad61b5fdc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/transport/mod.rs

+ 1 - 1
src/transport/mod.rs

@@ -12,7 +12,7 @@ use tracing::{error, trace};
 pub static DEFAULT_NODELAY: bool = false;
 
 pub static DEFAULT_KEEPALIVE_SECS: u64 = 10;
-pub static DEFAULT_KEEPALIVE_INTERVAL: u64 = 5;
+pub static DEFAULT_KEEPALIVE_INTERVAL: u64 = 3;
 
 /// Specify a transport layer, like TCP, TLS
 #[async_trait]