Repository navigation
Commit d6e525d
authored
fix!(proto): Deprecate UdpStats::ios as io-operations can't be measured from this crate (#725)
## Description
Closes #727
Deprecates `ios` in `UdpStats`. It's a bit of a shame that `UdpStats` is
shared by so many places, path's sending stats, receiving stats,
connection-wide send and recv stats. There is no field that captures
something like this and makes sense across all of them, so adding it
would make for a structural change.
This field was clearly added to test gso batching: a connection-wide
sending stat. This is the only place where this is meaningful, so to be
able to continue testing this, a tet only field is added to the
connection stats.
## Breaking Changes
- Deprecates `UdpStats::ios` without replacement. See #727 If you do
need to count io operations, please do so by incorporating counting
operations in your `AsyncUdpSocket` implementation
## Notes & open questions
If anyone seriously cares about this, we should know thanks to the
deprecation warning, and would prompt us to add something that better
fits with the rest of the stats.
Whatever we do won't just be a undo of this PR as counting doesn't make
sense in the rest of places, and the name is misleading. Basically, the
deprecation warning should allow us to decide whether a larger change is
required to get the `gso_batches` (what the field actually tried to
measure, as noted by the tests) or if it can be cleanly removed. I'm
tempted to say the latter, as I don't think users care too much about
this.
Now, if they _do_ want a count of `io` operations, that's an entirely
different approach that requires interaction with the `AsyncUdpSocket`.
## Change checklist
<!-- Remove any that are not relevant. -->
- [x] Self-review.
- [x] Breaking changes documented.
<!--
tip:
Run `cargo make` in the workspace root to check many light-weight CI
steps locally.
-->1 parent 424652d commit d6e525d
3 files changed
Lines changed: 38 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1075 | 1079 | | |
1076 | 1080 | | |
1077 | 1081 | | |
| |||
1084 | 1088 | | |
1085 | 1089 | | |
1086 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1087 | 1095 | | |
1088 | 1096 | | |
1089 | 1097 | | |
| |||
1108 | 1116 | | |
1109 | 1117 | | |
1110 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1111 | 1123 | | |
1112 | 1124 | | |
1113 | 1125 | | |
| |||
4228 | 4240 | | |
4229 | 4241 | | |
4230 | 4242 | | |
4231 | | - | |
4232 | | - | |
4233 | 4243 | | |
4234 | 4244 | | |
4235 | 4245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
269 | 276 | | |
270 | 277 | | |
271 | 278 | | |
| |||
297 | 304 | | |
298 | 305 | | |
299 | 306 | | |
| 307 | + | |
| 308 | + | |
300 | 309 | | |
301 | 310 | | |
302 | 311 | | |
| |||
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
| 340 | + | |
| 341 | + | |
331 | 342 | | |
332 | 343 | | |
333 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2198 | 2198 | | |
2199 | 2199 | | |
2200 | 2200 | | |
2201 | | - | |
| 2201 | + | |
2202 | 2202 | | |
2203 | 2203 | | |
2204 | 2204 | | |
| |||
3501 | 3501 | | |
3502 | 3502 | | |
3503 | 3503 | | |
3504 | | - | |
| 3504 | + | |
3505 | 3505 | | |
3506 | 3506 | | |
3507 | 3507 | | |
| |||
3511 | 3511 | | |
3512 | 3512 | | |
3513 | 3513 | | |
3514 | | - | |
3515 | | - | |
| 3514 | + | |
| 3515 | + | |
3516 | 3516 | | |
3517 | 3517 | | |
3518 | 3518 | | |
| |||
3521 | 3521 | | |
3522 | 3522 | | |
3523 | 3523 | | |
3524 | | - | |
| 3524 | + | |
3525 | 3525 | | |
3526 | 3526 | | |
3527 | 3527 | | |
| |||
3535 | 3535 | | |
3536 | 3536 | | |
3537 | 3537 | | |
3538 | | - | |
| 3538 | + | |
3539 | 3539 | | |
3540 | | - | |
| 3540 | + | |
3541 | 3541 | | |
3542 | 3542 | | |
3543 | 3543 | | |
| |||
3551 | 3551 | | |
3552 | 3552 | | |
3553 | 3553 | | |
3554 | | - | |
| 3554 | + | |
3555 | 3555 | | |
3556 | 3556 | | |
3557 | 3557 | | |
| |||
3564 | 3564 | | |
3565 | 3565 | | |
3566 | 3566 | | |
3567 | | - | |
3568 | | - | |
| 3567 | + | |
| 3568 | + | |
3569 | 3569 | | |
3570 | 3570 | | |
3571 | 3571 | | |
| |||
3596 | 3596 | | |
3597 | 3597 | | |
3598 | 3598 | | |
3599 | | - | |
| 3599 | + | |
3600 | 3600 | | |
3601 | 3601 | | |
3602 | 3602 | | |
| |||
3624 | 3624 | | |
3625 | 3625 | | |
3626 | 3626 | | |
3627 | | - | |
3628 | | - | |
| 3627 | + | |
| 3628 | + | |
3629 | 3629 | | |
3630 | 3630 | | |
3631 | 3631 | | |
| |||
0 commit comments