Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal an error when an unknown method is called #3

Closed
ryuslash opened this issue Nov 11, 2016 · 1 comment
Closed

Signal an error when an unknown method is called #3

ryuslash opened this issue Nov 11, 2016 · 1 comment

Comments

@ryuslash
Copy link

Currently this project just seems to drop the signal when a request for an unknown method appears, which makes clients wait for a reply that never comes and time out. Other dbus services seem to raise an error instead, letting the clients move on to whatever comes next.

For example, an invocation using dbus-send with mowedline and another service:

drd% time dbus-send --print-reply --session --dest=net.retroj.mowedline /net/retroj/mowedline net.retroj.mowedline.updatee string:foo string:bar 
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
dbus-send --print-reply --session --dest=net.retroj.mowedline   string:foo   0.00s user 0.00s system 0% cpu 25.028 total



drd% time dbus-send --print-reply --session --dest=org.PulseAudio1 /org org.freedesktop.DBus.Introspectable.Introspectt 
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Introspectt" with signature "" on interface "org.freedesktop.DBus.Introspectable" doesn't exist

dbus-send --print-reply --session --dest=org.PulseAudio1 /org   0.00s user 0.00s system 0% cpu 0.003 total

Note the total time on both invocations.

@retroj
Copy link
Owner

retroj commented Nov 21, 2016

moved to ec1oud/dbus-egg#3

@retroj retroj closed this as completed Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants