You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2021/05/15 20:15:28 UTC
[thrift] branch master updated: consume remaining MessageSize but never reset, we should reset remainin MessageSize after readEnd Client: cpp Patch: Irelian <240290942@qq.com>
This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 33b7f48 consume remaining MessageSize but never reset, we should reset remainin MessageSize after readEnd Client: cpp Patch: Irelian <24...@qq.com>
33b7f48 is described below
commit 33b7f48ba4673a40bd69212bc5baec2a34d38d22
Author: Irelian <24...@qq.com>
AuthorDate: Tue May 11 16:04:33 2021 +0800
consume remaining MessageSize but never reset, we should reset remainin MessageSize after readEnd
Client: cpp
Patch: Irelian <24...@qq.com>
This closes #2390
---
lib/cpp/src/thrift/transport/TBufferTransports.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h
index 179934b..8f527bb 100644
--- a/lib/cpp/src/thrift/transport/TBufferTransports.h
+++ b/lib/cpp/src/thrift/transport/TBufferTransports.h
@@ -658,6 +658,7 @@ public:
if (rBase_ == wBase_) {
resetBuffer();
}
+ resetConsumedMessageSize();
return bytes;
}