Repository navigation
fix(transport/server): remove saved_datagrams.is_empty assert - #2887
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2887 +/- ##
==========================================
- Coverage 95.49% 95.48% -0.02%
==========================================
Files 115 115
Lines 34439 34439
Branches 34439 34439
==========================================
- Hits 32889 32885 -4
- Misses 1543 1545 +2
- Partials 7 9 +2
|
Failed Interop TestsQUIC Interop Runner, client vs. server, differences relative to c535de9. neqo-latest as client
neqo-latest as server
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
|
Client/server transfer resultsPerformance differences relative to b1c4293. Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Download data for |
Benchmark resultsPerformance differences relative to b1c4293. 1-conn/1-100mb-resp/mtu-1504 (aka. Download)/client: Change within noise threshold. time: [200.79 ms 201.22 ms 201.72 ms]
thrpt: [495.74 MiB/s 496.97 MiB/s 498.03 MiB/s]
change:
time: [−1.5235% −1.2341% −0.9313%] (p = 0.00 < 0.05)
thrpt: [+0.9401% +1.2496% +1.5471%]
1-conn/10_000-parallel-1b-resp/mtu-1504 (aka. RPS)/client: No change in performance detected. time: [307.04 ms 308.54 ms 310.05 ms]
thrpt: [32.253 Kelem/s 32.410 Kelem/s 32.569 Kelem/s]
change:
time: [−0.8456% −0.2237% +0.4349%] (p = 0.49 > 0.05)
thrpt: [−0.4330% +0.2242% +0.8528%]
1-conn/1-1b-resp/mtu-1504 (aka. HPS)/client: No change in performance detected. time: [27.978 ms 28.107 ms 28.252 ms]
thrpt: [35.396 B/s 35.579 B/s 35.743 B/s]
change:
time: [−0.7645% −0.0701% +0.6163%] (p = 0.85 > 0.05)
thrpt: [−0.6125% +0.0701% +0.7704%]
1-conn/1-100mb-req/mtu-1504 (aka. Upload)/client: 💚 Performance has improved. time: [202.24 ms 202.64 ms 203.12 ms]
thrpt: [492.31 MiB/s 493.48 MiB/s 494.47 MiB/s]
change:
time: [−4.3130% −4.0314% −3.7335%] (p = 0.00 < 0.05)
thrpt: [+3.8783% +4.2007% +4.5074%]
decode 4096 bytes, mask ff: No change in performance detected. time: [11.580 µs 11.596 µs 11.620 µs]
change: [−1.0387% −0.4674% +0.0095%] (p = 0.08 > 0.05)
decode 1048576 bytes, mask ff: No change in performance detected. time: [3.0619 ms 3.0749 ms 3.0914 ms]
change: [−0.3586% +0.1937% +0.8095%] (p = 0.53 > 0.05)
decode 4096 bytes, mask 7f: No change in performance detected. time: [19.378 µs 19.425 µs 19.478 µs]
change: [−0.7946% −0.1891% +0.3194%] (p = 0.55 > 0.05)
decode 1048576 bytes, mask 7f: No change in performance detected. time: [5.0804 ms 5.0916 ms 5.1045 ms]
change: [−0.4304% −0.0713% +0.2657%] (p = 0.69 > 0.05)
decode 4096 bytes, mask 3f: No change in performance detected. time: [5.5228 µs 5.5397 µs 5.5642 µs]
change: [−0.5009% +0.2468% +0.9914%] (p = 0.56 > 0.05)
decode 1048576 bytes, mask 3f: Change within noise threshold. time: [1.7578 ms 1.7581 ms 1.7587 ms]
change: [−0.8547% −0.4572% −0.1305%] (p = 0.01 < 0.05)
coalesce_acked_from_zero 1+1 entries: No change in performance detected. time: [88.295 ns 88.635 ns 88.977 ns]
change: [−0.1233% +0.3051% +0.7951%] (p = 0.21 > 0.05)
coalesce_acked_from_zero 3+1 entries: No change in performance detected. time: [106.11 ns 106.44 ns 106.79 ns]
change: [−2.2316% −0.8079% +0.1883%] (p = 0.23 > 0.05)
coalesce_acked_from_zero 10+1 entries: No change in performance detected. time: [105.41 ns 105.71 ns 106.11 ns]
change: [−0.3367% +0.2159% +1.0246%] (p = 0.56 > 0.05)
coalesce_acked_from_zero 1000+1 entries: No change in performance detected. time: [88.724 ns 88.845 ns 88.993 ns]
change: [−1.0640% −0.1365% +0.7986%] (p = 0.79 > 0.05)
RxStreamOrderer::inbound_frame(): No change in performance detected. time: [107.97 ms 108.05 ms 108.13 ms]
change: [−0.2236% +0.0248% +0.2017%] (p = 0.85 > 0.05)
sent::Packets::take_ranges: :green_heart: Performance has improved. time: [5.1030 µs 5.1804 µs 5.2533 µs]
change: [−41.991% −36.043% −25.428%] (p = 0.00 < 0.05)
transfer/pacing-false/varying-seeds: Change within noise threshold. time: [36.407 ms 36.472 ms 36.536 ms]
change: [−0.7898% −0.5268% −0.2533%] (p = 0.00 < 0.05)
transfer/pacing-true/varying-seeds: No change in performance detected. time: [37.565 ms 37.685 ms 37.809 ms]
change: [−0.7608% −0.3417% +0.1029%] (p = 0.13 > 0.05)
transfer/pacing-false/same-seed: Change within noise threshold. time: [36.379 ms 36.466 ms 36.566 ms]
change: [+0.1919% +0.5221% +0.8550%] (p = 0.00 < 0.05)
transfer/pacing-true/same-seed: No change in performance detected. time: [37.974 ms 38.066 ms 38.160 ms]
change: [−0.4916% −0.1384% +0.1909%] (p = 0.42 > 0.05)
Download data for |
Given a server with two saved datagrams, where the first does not trigger an immediate response, the server would execute multiple `process_input` calls, one per datagram and thus run into the following `assert`: https://github.com/mozilla/neqo/blob/4d17dea10f163189022ec1c11e82602da6a7e198/neqo-transport/src/server.rs#L476-L479 With this commit, all saved datagrams are passed to `process_input` at once, processing it through the functions `while` loop. As a side effect, replaces `VecDeque` with `Vec` as suggested by Martin in mozilla#2734 (comment). Bug introduced in mozilla#2734.
saved_datagrams.is_empty assert
martinthomson
left a comment
There was a problem hiding this comment.
Just a suggestion for the test. And, yes, we don't have to be super-performant when it comes to saved datagrams. The extra complexity of batching is probably not worth it.
Given a server with two saved datagrams, where the first does not trigger an immediate response, the server would execute multiple
process_inputcalls, one per datagram, and thus run into the followingassert:neqo/neqo-transport/src/server.rs
Lines 476 to 479 in 4d17dea
This commit removes the
assert. Correctness is still upheld without it.Bug introduced in #2734.
Caught in https://treeherder.mozilla.org/jobs?repo=try&revision=05ccc36f73b45f2cff11b3f2c21044af706b779c&selectedTaskRun=NBGOUuvrRUiejEbiJFK4EA.0