Am Sun, Mar 01, 2026 at 09:32:42AM +0100, schrieb g1:
> it), this hangs for 25 seconds, until dbus reports timeout on

libsystemd added apparently isd_bus_set_method_call_timeout(3) after
https://salsa.debian.org/apt-team/apt/-/merge_requests/60 was merged
in 2019.

The default seems to be 25 sec and if I read Luca right they consider
that a sensible default. As I have no sufficient knowledge of dbus
I am not sure if its as simple as lowering the timeout given I have
no idea how "fast" our method call is supposed to return the fd…
(If that needs to be configurable for slow targets, yada yada yada …)
[or why it is that way at all. I would naively assume a method without
 a listener to 'timeout' immediately… but as said, no dbus knowledge]

I also wonder a bit if this code (apt-pkg/contrib/fileutl.cc 3448ff)
is based on some example or what not that might or might not deserve
an update (if it wasn't). I suppose not as I couldn't find a single
user of that method via codesearch in Debian at least, but maybe
everyone else is linking against dbus directly.


Note that this is about the call only, so pre-depends on a somewhat
broken login provider. There is no hang if there is e.g. no dbus
running at all (like in a chroot).

Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature

Reply via email to