Maximum message size allowed in dbus

Thiago Macieira thiago at kde.org
Mon Jan 21 07:53:26 PST 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080121/684fb517/attachment.pgp 


More information about the dbus mailing list