修改命令超时时间

This commit is contained in:
lubeilin
2023-09-22 22:43:02 +08:00
parent baf0698fe4
commit 3766b2b7c1
+1 -1
View File
@@ -26,7 +26,7 @@ impl CommandClient {
}
};
let udp = UdpSocket::bind("127.0.0.1:0")?;
udp.set_read_timeout(Some(Duration::from_secs(2)))?;
udp.set_read_timeout(Some(Duration::from_secs(5)))?;
udp.connect(SocketAddr::V4(SocketAddrV4::new(
Ipv4Addr::new(127, 0, 0, 1),
port,