fix: bump timeout of reading messages down to 2 seconds

This commit is contained in:
trafficlunar 2025-09-23 20:13:47 +01:00
parent 4c450bd8b9
commit c6091c039b

View file

@ -60,7 +60,7 @@ pub async fn start_sending(socket: &mut WebSocketStream<MaybeTlsStream<TcpStream
}
// Read incoming messages
match timeout(Duration::from_secs(10), socket.next()).await {
match timeout(Duration::from_secs(2), socket.next()).await {
Ok(Some(msg)) => match msg {
Ok(Message::Pong(_)) => {
println!("Received pong");