"DBus Embedded" - a clean break
Rémi Denis-Courmont
remi at remlab.net
Thu Jan 20 12:34:10 PST 2011
Le jeudi 20 janvier 2011 22:31:31 Thiago Macieira, vous avez écrit :
> On Thursday, 20 de January de 2011 14:56:01 Havoc Pennington wrote:
> > > Better just drop all messages that are broken to the point that you
> > > cannot parse them, a.k.a. the (receiving half of the) Jon Postel
> > > principle.
> >
> > You can't really do that... once a message is not well-formed, there's
> > often no way to locate the start of the next message, you have to give
> > up on the whole stream. Say a message has an unparseable header, well
> > that means you can't locate the body or the end of the message.
>
> Well, if the error is in the message header, then the whole stream is
> broken and it's unrecoverable.
The message header has a length too. AFAICT, only errors within the 8 bytes at
offset 8 are non recoverable.
--
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis
More information about the dbus
mailing list