Replies: 4 comments 20 replies
-
Hello @meehand Sounds pretty straight forward to add. However, is there a particular reason you want to tweak timeout? |
Beta Was this translation helpful? Give feedback.
-
Hmm... Reading the man page aparently there is https://man.archlinux.org/man/sd_bus_set_method_call_timeout.3.en#DESCRIPTION |
Beta Was this translation helpful? Give feedback.
-
@meehand I added the As for controlling the timeout per call I would look in to that more in the future. |
Beta Was this translation helpful? Give feedback.
-
I just realized that it is possible to have extra methods for D-Bus method descriptor objects. So there can be an extra method to do a call with extra timeout. For example, calling some long_method with 60 second timeout and some_argument: await dbus_object.long_method.with_timeout(60)(some_argument) I think the typing should work out. |
Beta Was this translation helpful? Give feedback.
-
As it stands, there is no support in the library for adjusting the timeout away from the default. If support for sd_bus_set_method_call_timeout() was added, we could adjust the timeout.
Beta Was this translation helpful? Give feedback.
All reactions