changed stream timeout value to 500 milli secs

This commit is contained in:
Mitchell 2020-08-01 13:36:56 +01:00
parent a63fb3019c
commit 55e4935105
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ impl<'a> Client<'a> {
}
pub fn handle_connection(&mut self){
self.stream.set_read_timeout(Some(Duration::from_millis(2000))).unwrap();
self.stream.set_read_timeout(Some(Duration::from_millis(500))).unwrap();
//self.stream.set_nonblocking(true).expect("set_nonblocking call failed");
while self.connected {