use TCP_NODELAY
This commit is contained in:
parent
4e7fb3b444
commit
895244aa4e
@ -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) => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user