use TCP_NODELAY

This commit is contained in:
soruh 2023-02-15 13:41:54 +01:00
parent 4e7fb3b444
commit 895244aa4e

View File

@ -603,6 +603,9 @@ async fn connection_handler(
)?; )?;
} }
stream.set_nodelay(true)?;
client.set_nodelay(true)?;
select! { select! {
_ = tokio::io::copy_bidirectional(stream, &mut client) => {} _ = tokio::io::copy_bidirectional(stream, &mut client) => {}
_ = sleep(CALL_TIMEOUT) => {} _ = sleep(CALL_TIMEOUT) => {}