Re: [protobuf] Why getting errors when exanging large messages

2010-03-24 Thread Jason Hsueh
The first message from message_lite.cc:106 is telling you that some required fields were missing. Have you verified that each of the fields listed was set? If you don't want required fields checking, you need to use one of the ParsePartial* to skip required field checking. The second message is fr

Re: [protobuf] Why getting errors when exanging large messages

2010-03-24 Thread Henner Zeller
Just a guess from your statement that it only (?) happens for larger data: did you make sure to read all the data from the socket ? Looks like your data is somehow truncated. A read() call from a socket returns the number of bytes you actually got - you might call it multiple times until you actual

[protobuf] Why getting errors when exanging large messages

2010-03-24 Thread mk
Hi Could someone please tell me why I am getting these errors when I exchange large messages though sockets between programs: -- libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf \message_lite.cc:106] Ca n't parse message of type "Data" because it is missing required fields: str, str