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
<[email protected]>
33b7f48 is described below
commit 33b7f48ba4673a40bd69212bc5baec2a34d38d22
Author: Irelian <[email protected]>
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 <[email protected]>
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;
}