*Attention:*
There is an error in the implementation of read_message_delimited!

if message + header are less than 4 bytes, the stream will swallow the rest.

this is why instead of reading all 4 bytes at once the java implementation 
will only read the first byte, and then check if more is needed for the 
header.

see readRawVarint32 in 
https://github.com/google/protobuf/blob/master/java/core/src/main/java/com/google/protobuf/CodedInputStream.java


On Monday, October 18, 2010 at 9:11:05 PM UTC+2, prot...@googlecode.com 
wrote:
>
> Status: New
> Owner: ken...@google.com <javascript:>
> Labels: Type-Defect Priority-Medium
>
> New issue 226 by pkwarren: Python API doesn't support reading/writing  
> delimited messages
> http://code.google.com/p/protobuf/issues/detail?id=226
>
> What steps will reproduce the problem?
> 1. Use Java Message.writeDelimitedTo(...) to serialize more than one  
> protobuf in a payload.
> 2. Try to read in the serialized messages in Python API.
>
> What is the expected output? What do you see instead?
> Unable to read delimited messages using Python API. Would expect similar  
> API calls to be available in Python API.
>
> What version of the product are you using? On what operating system?
> Version 2.3.0, Mac OS X
>
> Please provide any additional information below.
> Patches to enable this support in python were contributed in  
>
> http://groups.google.com/group/protobuf/browse_thread/thread/ff78009af538ffcd/691768bdaed14d30?lnk=gst&q=parseDelimited#691768bdaed14d30
>  
>  
> however it doesn't appear they were checked in.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to