mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-24 02:42:57 +03:00
Fix: make connect timeout greater
This commit is contained in:
parent
16d7cf0b29
commit
956612b192
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user