Setting TCP_ NODELAY option for rust server (#2832)
Resolve TFramedWriteTransport write message size 4 bytes causing approximately 40 milliseconds delay
diff --git a/lib/rs/src/server/threaded.rs b/lib/rs/src/server/threaded.rs
index ad55b44..ee86395 100644
--- a/lib/rs/src/server/threaded.rs
+++ b/lib/rs/src/server/threaded.rs
@@ -183,6 +183,7 @@
for stream in listener.incoming() {
match stream {
Ok(s) => {
+ s.set_nodelay(true).ok();
let channel = TTcpChannel::with_stream(s);
self.handle_stream(channel)?;
}