Maximum message size allowed in dbus

Naveen Verma ernaveenverma at gmail.com
Mon Jan 21 11:18:12 PST 2008


Hi,

If you are using session bus then in the session bus conf file usually in
/etc/dbus-1/session.conf it has message size limit. I think by default it is
1MB. So if that is the problem then may be you can try by increasing the
message sixe limit.

-Br
Naveen

On Jan 21, 2008 5:53 PM, Thiago Macieira <thiago at kde.org> wrote:

> Sumit Kumar Jain wrote:
> >Hi All,
> >I am using dbus glib binding. I have a code where i am trying to
> > transfer a 5 MB file over dbus. I am getting an error which is
> >
> >"Failed to write file 'copy-client.JK5K5T': fwrite() failed: Bad
> > address"
> >
> >However for small file ( about 10-20 k), I am not getting the same
> > problem. I looked up the dbus specs and that says that the max message
> > size is 2 pow 27. I am not able to understand the reason of failure. I
> > am attaching my code for your reference.
>
> What happens if you limit your chunks to 1 MB?
>
> --
>  Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   PGP/GPG: 0x6EF45358; fingerprint:
>   E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20080121/50f273df/attachment.htm 


More information about the dbus mailing list