diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h index 179934ba0..8f527bb20 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; }