Array-Size
Thiago Macieira
thiago.macieira at trolltech.com
Mon Apr 3 09:39:12 PDT 2006
staneker at gris.uni-tuebingen.de wrote:
>Hi!
>
>Today I tried to pass an array from my server as reply
>message to my client. But the problem is, that I can only
>transfer arrays with a maximum size of 112844 bytes. Is
>there any restriction in the size of an array in a message?
Yes, there is. It's 2^26, so much larger than what you're seeing.
I've just created a simple test-case that sends 256k of data and it works
just fine.
However, something weird shows up on strace:
[129 reads]
writev(8, [{"l\1\0\1\4\0\4\0\5\0\0\0\206\0\0\0\1\1o\0\21\0\0\0/org/"...,
152}, {"\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1"...,
262148}], 2) = 113568
[129 reads]
writev(9, [{"l\2\1\1\4\0\4\0\6\0\0\0.\0\0\0\6\1s\0\5\0\0\0:1.22\0\0"...,
64}, {"\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1"...,
262148}], 2) = 113568
Despite the return value, all 256kB were transferred, and that is
confirmed by the number of reads.
--
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060403/3ed3a38a/attachment.pgp
More information about the dbus
mailing list