Lowered read timeout on ssl to 10ms
parent
43f270ab28
commit
5089684c70
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue