moq-wg / moq-transport

draft-ietf-moq-transport
Other
70 stars 16 forks source link

Exclusive SUBSCRIBE end range #437

Closed kixelated closed 2 months ago

kixelated commented 2 months ago

This removes the N/latest functionality which is super confusing. It's also just cleaner to use exclusive end ranges instead of the previously implied inclusive ranges.

Note that to receive a single group, you need to use:

    start_group=N  start_object=0
    end_group=N+1  end_object=0

Previously that was accomplished with:

    start_group=N  start_object=1
    end_group=N    end_object=0
afrind commented 2 months ago

See related issue #436

suhasHere commented 2 months ago

Submitted https://github.com/moq-wg/moq-transport/pull/439 as another way to clarify some ambiguities.

wilaw commented 2 months ago

This PR assumes the end_group N+1 exists. What about the case of an asset which only has groups from 1..10. If I want to subscribe to all of these, I have request

start_group=1 start_object=0 end_group=11 end_object=0

This is semantically awkward to me, since it references an entity (group 11) which does not exist. It would be so much cleaner and more intuitive if the API allowed us to ask for what we want, via inclusive threshold. I would rename them to "first" and "last" to make their syntax clearer. So to subscribe to groups 1..10 I could do

first_group=1 start_object=0 last_group=10 end_object=0

I then receive receive exactly what I ask for.

afrind commented 2 months ago

This spiritually merged into #439