-
Notifications
You must be signed in to change notification settings - Fork 23
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
Max Cache Duration per Subscription #450
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1519,6 +1519,7 @@ SUBSCRIBE_OK | |
{ | ||
Subscribe ID (i), | ||
Expires (i), | ||
Max Cache Duration (i), | ||
ContentExists (f), | ||
[Largest Group ID (i)], | ||
[Largest Object ID (i)] | ||
|
@@ -1533,6 +1534,13 @@ longer valid. A value of 0 indicates that the subscription does not expire | |
or expires at an unknown time. Expires is advisory and a subscription can | ||
end prior to the expiry time or last longer. | ||
|
||
* Max Cache Duration: The maximum length of time in milliseconds a caching | ||
relay MAY cache the subscription for. A value of 0 indicates there is no limit. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this have value for non-relays (eg: subscriber side caches?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is the objects that are cached not the subscription so I think this needs to say "MAY cache the object for" |
||
The relay MUST NOT begin sending Objects for a new subscription from cache if | ||
it's older than Max Cache Duration. When a relay responds with SUBSCRIBE_OK, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to be clear the time starts at when the relay started to receive the object. |
||
the amount of time since the corresponding upstream subscription was made is | ||
subtracted when sending the Max Cache Duration. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sentence does not make sense if we are caching objects not subscriptions. Would just remove it. |
||
|
||
* ContentExists: 1 if an object has been published on this track, 0 if not. | ||
If 0, then the Largest Group ID and Largest Object ID fields will not be | ||
present. | ||
|
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.
I think this might be slightly better as an optional parameter but clearly not a big deal either way