From 5089684c70d1fafa8f13bdc62241188e0e42f299 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 22 Jan 2024 21:25:20 -0700 Subject: [PATCH] Lowered read timeout on ssl to 10ms --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 24cf1b0..9c2b3a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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,