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

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