THRIFT-4390: Fix bug where binary/buffered messages > 4K could not be read/written
Client: rs
This closes #1458
diff --git a/lib/rs/src/transport/socket.rs b/lib/rs/src/transport/socket.rs
index 727bba3..a6f780a 100644
--- a/lib/rs/src/transport/socket.rs
+++ b/lib/rs/src/transport/socket.rs
@@ -156,7 +156,7 @@
impl Write for TTcpChannel {
fn write(&mut self, b: &[u8]) -> io::Result<usize> {
- self.if_set(|s| s.write_all(b)).map(|_| b.len())
+ self.if_set(|s| s.write(b))
}
fn flush(&mut self) -> io::Result<()> {