shiyilei / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Does unpack function support chunked decoding? #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have a client server scenario where the client send request to the server 
and gets a response.
2. The response may come in chunk. (Hence when unpack function is called, the 
entire data may not be available)
3. unpack returns NULL with some prints that data is too short.

What is the expected output? What do you see instead?
unpack supporting chunk input data.

What version of the product are you using? On what operating system?
protobuf-c-0.15 On Linux

Please provide any additional information below.

Original issue reported on code.google.com by aravin...@gmail.com on 19 Jul 2011 at 11:54

GoogleCodeExporter commented 8 years ago
The problem is that that is inheritly unreliable.  A protocol buffers message 
has no detectable end.  In other words, "3" above is impossible.  Lots of 
messages have possible stopping points that aren't actually the end of the 
message.

Original comment by lahike...@gmail.com on 2 Nov 2011 at 4:36