Skip to content

Replace latest Group/Object with StartGroup and StartObject #726

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

Closed
wants to merge 4 commits into from

Conversation

ianswett
Copy link
Collaborator

Also clarify what Object is expected to be delivered first, fixing #592

Also clarify what Object is expected to be delivered first, fixing #592
@ianswett ianswett added the Subscribe Related to SUBSCRIBE message and subscription handling label Feb 26, 2025
@ianswett ianswett requested review from wilaw and afrind February 26, 2025 00:57
Copy link
Collaborator

@afrind afrind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Individual Review

the current object of the current group. If no content has been delivered yet,
the subscription starts with the first published or received group.
Latest Object (0x2): Specifies an open-ended subscription, beginning
with the next published Object. If no content has been delivered
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The next published object may not be larger than Start Group/Start Object. eg: with reordering the relay has seen 2-2 when my subscribe arrives, it will say '2-3', but the next object the relay sees may be 2-1.

My current relay implementation will not deliver 2-1, so I think I agree with what's below, but maybe just this wording needs something else.

Also, given the name in the response "Start Group/Object", we might want to clearly explain there is no guarantee that such object will ever be delivered or even exists. It's just the equivalent to the field with the same name in AbsoluteStart/Range.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should instead call it as "LastSeenGroup" and "LastSeenObject" .. this is the statement of truth when the subscription happened. End Subscribers now know the last known point and adjust accordingly.

Comment on lines +1818 to +1819
[StartGroup (i),
StartObject (i)],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are in brackets - when does the receiver know they are there? Or should we always include them? For AbsoluteStart/AbsoluteRange, we just echo back what was in the request?

@ianswett
Copy link
Collaborator Author

I believe @martinduke was going to take a crack at this issue as well. I'm not sure I'm completely happy with this text, so I'm going to mark it parked for now.

@ianswett ianswett added the Parked Issue we may discuss later or close as OBE label Mar 19, 2025
@afrind afrind closed this in #927 Apr 19, 2025
@afrind afrind closed this in 708e740 Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parked Issue we may discuss later or close as OBE Subscribe Related to SUBSCRIBE message and subscription handling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants