feat: update fast socks
This commit is contained in:
@@ -661,8 +661,8 @@ async fn transfer<I, O>(inbound: I, outbound: O) -> Result<()>
|
||||
let (mut ri, mut wi) = tokio::io::split(inbound);
|
||||
let (mut ro, mut wo) = tokio::io::split(outbound);
|
||||
// IO copy timeout 12 HOURS
|
||||
let tcp_io_copy_timeout = Duration::from_secs(12 * 3600);
|
||||
let client_to_server = async {
|
||||
let tcp_io_copy_timeout = Duration::from_secs(6 * 3600);
|
||||
let client_to_server = async move {
|
||||
// let copy_result = time::timeout(tcp_io_copy_timeout, tokio::io::copy(&mut ri, &mut wo));
|
||||
let copy_result = time::timeout(
|
||||
tcp_io_copy_timeout,
|
||||
@@ -678,7 +678,7 @@ async fn transfer<I, O>(inbound: I, outbound: O) -> Result<()>
|
||||
Ok(r) => r,
|
||||
}
|
||||
};
|
||||
let server_to_client = async {
|
||||
let server_to_client = async move {
|
||||
// let copy_result = time::timeout(tcp_io_copy_timeout, tokio::io::copy(&mut ro, &mut wi));
|
||||
let copy_result = time::timeout(
|
||||
tcp_io_copy_timeout,
|
||||
|
||||
Reference in New Issue
Block a user