Lowered read timeout on ssl to 10ms

master
noah metz 2024-01-22 21:25:20 -07:00
parent 43f270ab28
commit 5089684c70
1 changed files with 1 additions and 2 deletions

@ -577,8 +577,7 @@ impl TMClient {
stream_config.set_use_server_name_indication(false);
let stream = stream_config.connect(&host, stream).unwrap();
stream.get_ref().set_read_timeout(Some(Duration::from_millis(100))).expect("Failed to set read timeout on socket");
stream.get_ref().set_read_timeout(Some(Duration::from_millis(10))).expect("Failed to set read timeout on socket");
return (TMClient{
stream,