Replies: 1 comment
|
@vk-gst I've never used the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The default dbus timeout between the client-server application operating on system-bus is around 25 seconds.
I am trying to configure this to say 40s using the following parameter in the dbus-configuration file :
<limit name="reply_timeout">40000</limit>However, this did not work. The client disconnected after 25s, with an error:
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.The next try I did was manually setting timeout at the server application, but that did not help too.
std::unique_ptr<sdbus::IConnection> m_connection;m_connection->setMethodCallTimeout(40000);Has anyone tried configuring a timeout and were successful?
Update:
I was able to resolve the issue at client application timeout, with the member
withTimeout()when using convenience API.eg.
std::unique_ptr<sdbus::IProxy> m_Proxy;m_Proxy->callMethodAsync(...).withTimeout(40000000).onInterface(..).uponReplyInvoke(..)The client application no longer throws the Timeout error after 25s. However, when I monitor the messages using
dbus-monitor, I do not see any messages for the response. I expect a response message after 40s, to be seen on the DBus, but there is none. The request is seen however. The code insideuponReplyInvokeis also executed, which means there was a response provided by the server application.I do not understand as to why there is no response on the dbus-monitor.
All reactions