-
Notifications
You must be signed in to change notification settings - Fork 74
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
Implement liveliness support #632
base: main
Are you sure you want to change the base?
Conversation
PR missing one of the required labels: {'bug', 'dependencies', 'new feature', 'internal', 'documentation', 'enhancement', 'breaking-change'} |
2398a24
to
86d3455
Compare
ed89516
to
aff1ff4
Compare
|
||
static volatile int keepRunning = 1; | ||
|
||
void intHandler(int dummy) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need that ?
I'm not sure to see the added value.
(We don't have this in rust example)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this, neither session closing nor token undeclaration is called at all, the example with zenoh-pico is simply interrupted. Yes, after the session loss timeout, the router will report the loss of the token, but for example in multicast peer-to-peer this will not happen.
Another general comment: |
Yes, make sense, I created an issue to don't forget do it after I rework disconnection handling in #767 |
Implement liveliness support, can be enabled/disabled by means of
Z_FEATURE_LIVELINESS
Token:
Subscriber: (require
Z_FEATURE_SUBSCRIPTION
enabled)Query: (require
Z_FEATURE_QUERY
enabled)Token interest query processing
Examples:
Additionally:
Closes: #621