commit | f12cacf56145e2c8f0d4429694fedf5453648089 | [log] [tgz] |
---|---|---|
author | zhiyong0804 <allen_lee_007@163.com> | Thu Jul 05 21:29:51 2018 +0800 |
committer | James E. King III <jking@apache.org> | Thu Jul 05 09:29:51 2018 -0400 |
tree | 0872169cf5678433c2e0ae83bea3983e8f6f05e3 | |
parent | e7fa46458492a0243cde2ddd86e538c3b7cfd58e [diff] |
THRIFT-4591: optimize lua client to use one write per framed message (#1566)
diff --git a/lib/lua/TFramedTransport.lua b/lib/lua/TFramedTransport.lua index 437b701..768e2d9 100644 --- a/lib/lua/TFramedTransport.lua +++ b/lib/lua/TFramedTransport.lua
@@ -100,7 +100,7 @@ local tmp = self.wBuf self.wBuf = '' local frame_len_buf = libluabpack.bpack("i", string.len(tmp)) - self.trans:write(frame_len_buf) + tmp = frame_len_buf .. tmp self.trans:write(tmp) self.trans:flush() end