"DBus Embedded" - a clean break

Alban Crequy alban.crequy at collabora.co.uk
Thu Jan 20 16:12:32 PST 2011


Le Thu, 20 Jan 2011 14:56:01 -0500,
Havoc Pennington <hp at pobox.com> a écrit :

> > 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.

In my multicast code for Unix socket, I use SOCK_SEQPACKET, so the
boundaries of messages are known. I don't know about the limit for big
message though.

Alban


More information about the dbus mailing list