D-Bus session bus is strangely closing my connection
Kristoffer Lundén
kristoffer.lunden at gmail.com
Sun Mar 18 08:39:32 PDT 2007
Hello,
On 3/18/07, Thiago Macieira <thiago at kde.org> wrote:
> Kristoffer Lundén wrote:
> >The calls are identical, byte for byte
>
> No, they are not.
>
You are absolutely right. I have no idea how I could have missed that,
I lined them up part by part in my editor last night. Guess I gotta
plead "late night syndrome" ;-)
Anyhow, thanks to you setting me on the right track, (and maybe some
sleep) it was easy to fix. A million thanks! It works just fine now.
:)
Sorry for the spam. ;-)
-- Kristoffer
> If you put them side by side, you'll notice that the Ruby program is
> sending an invalid message. The a{sv} argument of the call is being
> marshalled by Python as '\0\0\0\0' (empty), while Ruby is
> sending '\4\0\0\0\0\0\0\0' (4 bytes of data).
>
> And 4 bytes cannot contain one {sv}: the minimum acceptable would be the
> string's length (4 bytes), the terninating NUL for the string, one byte
> to encode the length for the variant's signature, the signature's one
> byte followed by a NUL and a single element of type BYTE.
>
> So the Ruby message was invalid.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
>
--
Kristoffer Lundén
✉ kristoffer.lunden at gmail.com
✉ kristoffer.lunden at gamemaker.nu
http://www.gamemaker.nu/
☎ 0704 48 98 77
More information about the dbus
mailing list