"DBus Embedded" - a clean break

Thiago Macieira thiago at kde.org
Thu Jan 20 12:31:31 PST 2011


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.

If the error is in the message body, then it's recoverable. The message header 
has the size of the body included, but not the size of the header.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110120/5146a12c/attachment.pgp>


More information about the dbus mailing list