ParseDelimited from unreliable comm channel

41 views
Skip to first unread message

David L

unread,
Oct 10, 2022, 1:19:39 PM10/10/22
to Protocol Buffers
When serializing a message with SerializeDelimitedToOstream, is the expectation that parsing the resulting serial stream will re-sync if some data is lost (eg, if the serialized stream is sent over a radio modem)? Some preliminary testing that I did showed that parsing data after some lost bytes failed continuously thereafter. Is that expected? I had hoped that a parsing from a delimited stream would have some re-sync logic so only the message with the missing bytes would be lost.

Thanks,

         David

Marc Gravell

unread,
Oct 10, 2022, 1:27:49 PM10/10/22
to David L, Protocol Buffers
No, protobuf does not have any resync capability. You're going to need to wrap that yourself.

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/f05befea-8b86-4742-bf44-4cefb2733bd8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages