Fix: make connect timeout greater

This commit is contained in:
MeexReay 2025-06-20 01:28:20 +03:00
parent 16d7cf0b29
commit 956612b192

View File

@ -177,8 +177,8 @@ pub fn connect(host: &str, proxy: Option<String>) -> Result<RacStream, Box<dyn E
stream
};
stream.set_read_timeout(Duration::from_secs(3));
stream.set_write_timeout(Duration::from_secs(3));
stream.set_read_timeout(Duration::from_secs(15)); // TODO: make this value changing from settings
stream.set_write_timeout(Duration::from_secs(15));
if wrac {
let (client, _) = tungstenite::client(