Replies: 1 comment 2 replies
-
As an ugly hack I can use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm trying to create a service that exposes some operations as methods on a particular path, but the server/service also needs to keep per-connection/per-client state between method calls.
Background
For more background, I'm trying to model the kernel interface proposed here: https://lkml.org/lkml/2021/3/8/677 as a user-space DBus interface.
Current tentative interface model:
Have a DBus service
com.TBD.sysgenid
that exposes methods and signals for consuming and interacting with sysgenid subsystem.Methods:
GetGenCounter
- no input params - returns latest generation counterAckGenCounter
- input: client view of the counter - returns ok if client ack counter is correct, err otherwiseSetWatcherTracking
- each client is a watcher, sets whether client should be tracked for ACKs or notTriggerGenUpdate
- triggers generation updateSignals:
NewGeneration
- gen id change notification - contains new gen counterSystemReady
- all tracked watchers haveACKed
new gen counterQuestion
How can I keep per client connection data in a crossroads service? Associated data needs to have same lifetime as client connection.
Beta Was this translation helpful? Give feedback.
All reactions