facebook / mvfst

An implementation of the QUIC transport protocol.
MIT License
1.5k stars 242 forks source link

Datagrams Priorities #314

Open HaseebLUMS opened 1 year ago

HaseebLUMS commented 1 year ago

I don't seem to find any API for assigning priorities to Datagrams (relative to other datagrams and streams). Is this feature (mentioned in RFC 9221) not implemented?

afrind commented 1 year ago

There isn't currently an API for setting datagram priorities. One of the reasons is that the RFC is somewhat vague about what the priority scheme should be for datagrams, and the amount of state required internally to prioritize on a per-datagram basis.

Did you have a prioritization scheme in mind? Do you want to prioritize all datagrams relative to streams, or datagrams with respect to each other, or both?

HaseebLUMS commented 1 year ago

Right now my use-case requires prioritizing a stream over all the datagrams. However, I think in the future I might also need to prioritize groups of datagrams relative to each other.