Add TODO for supporting timeouts in Socks5Proxy.

This commit is contained in:
sklv
2020-04-12 11:10:05 +00:00
committed by Martin Algesten
parent a598b1091b
commit 92b4e7ec2c

View File

@@ -293,6 +293,7 @@ fn connect_socks5(
// 3) an exception is thrown. // 3) an exception is thrown.
// # Defects // # Defects
// 1) In the event of a timeout, a thread may be left running in the background. // 1) In the event of a timeout, a thread may be left running in the background.
// TODO: explore supporting timeouts upstream in Socks5Proxy.
let stream = if timeout_connect > 0 { let stream = if timeout_connect > 0 {
let master_signal = Arc::new((Mutex::new(false), Condvar::new())); let master_signal = Arc::new((Mutex::new(false), Condvar::new()));
let slave_signal = master_signal.clone(); let slave_signal = master_signal.clone();