aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hbak_common/src/conn.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/hbak_common/src/conn.rs b/hbak_common/src/conn.rs
index 3b9c5a4..db16967 100644
--- a/hbak_common/src/conn.rs
+++ b/hbak_common/src/conn.rs
@@ -133,6 +133,7 @@ impl AuthConn {
impl From<TcpStream> for AuthConn {
fn from(stream: TcpStream) -> Self {
+ stream.set_nodelay(true).unwrap();
Self { stream }
}
}
@@ -231,6 +232,7 @@ impl AuthServ {
impl From<TcpStream> for AuthServ {
fn from(stream: TcpStream) -> Self {
+ stream.set_nodelay(true).unwrap();
Self { stream }
}
}