Hi,

I am using Thrift 0.6.x version and I am writing a Thrift decoder ( using
TDebugProtocol)  to decode and print in text Thrift packets sent over
TCP which are captured by PCAP. I have access to the Thrift Definitions.

I see two types of transports used TBufferedTransport and TFramedTransport.

I need to know the total length of the Thrift payload so that I can
reassembly fragmented packets and decode.

For TFramedTransport, I see that Thrift writes a 4 byte total payload
length just before encoding the Thrift payload. I am able to
For TBufferedTransport, I dont see a 4 byte total length. So I am unable to
reassemble the entire payload for decoding.

Any suggestions on how to know the total payload length for
TBufferedTransport or does Thrift provide any way of handling cases like
this.

regards,
Prabhakar

Reply via email to