Skip to content

Commit

Permalink
enable TCP_NODELAY for rust client channel
Browse files Browse the repository at this point in the history
  • Loading branch information
OmmyZhang committed Sep 26, 2023
1 parent bc9c04d commit eed7bd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rs/src/transport/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ impl TTcpChannel {
} else {
match TcpStream::connect(&remote_address) {
Ok(s) => {
s.set_nodelay(true)?;
self.stream = Some(s);
Ok(())
}
Expand Down

0 comments on commit eed7bd7

Please sign in to comment.