-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add stats.atSendCapacity #603
Conversation
These are modeled on estimatedSendRate, the lone stat specific to the WebTransport session, as opposed to all the other stats which are for the entire underlying connection. I dunno if that was a mistake or not. We should discuss. |
Meeting:
|
Meeting:
|
Personally, I'm actually partial to a flat hierarchy a bit, since a hierarchy doesn't really solve ambiguity that much due to the This will throw if stats.sendRate.isDataLimited; This result in undefined (which might interpreted as false by websites): stats.sendRate?.isDataLimited; |
@wilaw wrote in #607 (comment):
(replying here about stats we're still adding here) If unavailable stats are mostly a problem at connection start, then defaults reflecting initial state should work.
A connection is inherently data limited to start, so this would naturally default to (start out as) true, unless we can think of a name for the inverse state.
Is it possible for a session to be both data limited AND server limited? If I have two long-lived streams, one server limited (receiving back pressure from the server) and the other data limited, would both be true? How would I know which applies to which?
These seem fine to me. |
Meeting:
|
Meeting:
|
Including what I typed into chat... When false, it indicates that estimatedSendRate is not being fully utilized and could be an unreliable estimate of actual network capacity. When true, it indicates that the data that the application sends is close to the estimatedSendRate. As long as that send rate is sustained, estimatedSendRate will adapt to network conditions and be a fair estimate of what capacity is available to the application. |
SHA: 3a324bf Reason: push, by jan-ivar Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fixes #559. For discussion.
Preview | Diff