ITADN

Priority type is wrong according to webtransport spec

#2635OpenValorZard 创建于 2026-05-10
V
ValorZardcommented
I was investigating https://github.com/BiagioFesta/wtransport/issues/307 and one issue i found was that the sendOrder/priority value in wtransport was an i32. However in the WebTransport spec its a u64: https://www.w3.org/TR/webtransport/#send-options > sendOrder, of type [long long](https://webidl.spec.whatwg.org/#idl-long-long), defaulting to 0 > A send order number that, if provided, opts the created stream in to participating in strict ordering. Bytes currently queued on [strictly ordered](https://www.w3.org/TR/webtransport/#strict-ordering) streams will be sent ahead of bytes currently queued on other [strictly ordered](https://www.w3.org/TR/webtransport/#strict-ordering) streams created with lower send order numbers. I thought that was a bit odd, and after doing a bit of digging, I found out it was because quinn has its priority value as an i32. Wouldn't it be an u64 instead? (unless quinn doesn't really care about the webtransport spec I guess)
7 条评论