Skip to content

Commit

Permalink
reduce tcpwdg interval
Browse files Browse the repository at this point in the history
  • Loading branch information
kistenklaus committed Jun 23, 2024
1 parent a4357fa commit f3116e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/lib/tcp/src/tcpcan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl TcpCan {
tokio::spawn(async move {
let mut keep_alive_frame = [0u8; 24];
TcpFrame::KeepAlive.into_bin(&mut keep_alive_frame);
let mut interval = tokio::time::interval(Duration::from_millis(1));
let mut interval = tokio::time::interval(Duration::from_millis(200));
loop {
interval.tick().await;
if let Err(_) = keep_alive_sock
Expand Down

0 comments on commit f3116e3

Please sign in to comment.