Question about caching of properties #1022
Closed
fmartinsons
started this conversation in
General
Replies: 1 comment 1 reply
-
Yes. The service being down doesn't really mean that you shouldn't be able to get the last known value of a property. I can see why this could be confusing but OTOH I'm not sure if this is something people would want: an error instead of the last known value of the property. We've a an API for folks to keep a track of the service. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a zbus proxy built with dbus_proxy macro and I use the same proxy instance accross my program to read some properties of a remote service.
I came accross something that puzzled me: if the remote service is stopped after the proxy creation, reading properties still succeed with the last known value. I though I'd receive an error of kind "The name x.y.z was not provided by any .service files" .
Moreover, after the remote service went up again, the property value is still the "old" one (last one read when the proxy was created)
If I use ProxyBuilder and disable caching of properties, the behavior is what I expected (error on property read and refresh when remote service went up again).
Is it "normal" that the cache is not invalidated if remote service went down or did I do something wrong ?
By the way I used zbus 3.15.2 , if the last zbus version changes this behavior , please tell me.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions