diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-02-13 17:30:16 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-02-13 17:30:16 +0100 |
commit | 86d53c781bef28b317b5afb59aaaef84b1092d84 (patch) | |
tree | 384263d0426b2514b7b1a4d96a085585dcf8801d | |
parent | 038044be91bad9979a95e38e2ce59cdda44ae690 (diff) |
set TCP_NODELAY on all streams
-rw-r--r-- | hbak_common/src/conn.rs | 2 |
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 } } } |