rwebtransport 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/Cargo.lock +666 -0
  2. package/Cargo.toml +31 -0
  3. package/LICENSE +202 -0
  4. package/NOTICE +41 -0
  5. package/README.md +550 -0
  6. package/crates/echo-server/Cargo.toml +20 -0
  7. package/crates/echo-server/src/main.rs +666 -0
  8. package/crates/native/Cargo.toml +23 -0
  9. package/crates/native/src/config.rs +129 -0
  10. package/crates/native/src/driver.rs +463 -0
  11. package/crates/native/src/lib.rs +821 -0
  12. package/crates/native/src/server.rs +718 -0
  13. package/crates/native/src/session.rs +1191 -0
  14. package/crates/native/src/tls.rs +96 -0
  15. package/crates/wtcore/Cargo.toml +15 -0
  16. package/crates/wtcore/src/h3.rs +226 -0
  17. package/crates/wtcore/src/lib.rs +9 -0
  18. package/dist/datagrams.d.ts +16 -0
  19. package/dist/errors.d.ts +10 -0
  20. package/dist/index.d.ts +7 -0
  21. package/dist/index.js +1512 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/index.mjs +1473 -0
  24. package/dist/index.mjs.map +1 -0
  25. package/dist/loader.d.ts +2 -0
  26. package/dist/native.d.ts +226 -0
  27. package/dist/server.d.ts +44 -0
  28. package/dist/streams.d.ts +14 -0
  29. package/dist/types.d.ts +24 -0
  30. package/dist/webtransport.d.ts +20 -0
  31. package/package.json +79 -0
  32. package/prebuilds/win32-x64/rwebtransport.node +0 -0
  33. package/scripts/bench.mjs +180 -0
  34. package/scripts/build.js +67 -0
  35. package/scripts/postinstall.js +67 -0
  36. package/scripts/setup-unix.sh +129 -0
  37. package/scripts/setup-windows.ps1 +229 -0
  38. package/vendor/quiche/AGENTS.md +75 -0
  39. package/vendor/quiche/COPYING +23 -0
  40. package/vendor/quiche/Cargo.lock +1212 -0
  41. package/vendor/quiche/Cargo.toml +215 -0
  42. package/vendor/quiche/README.md +466 -0
  43. package/vendor/quiche/examples/Makefile +46 -0
  44. package/vendor/quiche/examples/README.md +20 -0
  45. package/vendor/quiche/examples/cert-big.crt +90 -0
  46. package/vendor/quiche/examples/cert.crt +18 -0
  47. package/vendor/quiche/examples/cert.key +28 -0
  48. package/vendor/quiche/examples/client.c +343 -0
  49. package/vendor/quiche/examples/client.rs +281 -0
  50. package/vendor/quiche/examples/gen-certs.sh +15 -0
  51. package/vendor/quiche/examples/http3-client.c +473 -0
  52. package/vendor/quiche/examples/http3-client.rs +349 -0
  53. package/vendor/quiche/examples/http3-server.c +614 -0
  54. package/vendor/quiche/examples/http3-server.rs +680 -0
  55. package/vendor/quiche/examples/qpack-decode.rs +87 -0
  56. package/vendor/quiche/examples/qpack-encode.rs +88 -0
  57. package/vendor/quiche/examples/rootca.crt +21 -0
  58. package/vendor/quiche/examples/server.c +529 -0
  59. package/vendor/quiche/examples/server.rs +529 -0
  60. package/vendor/quiche/include/quiche.h +1282 -0
  61. package/vendor/quiche/quiche.svg +1 -0
  62. package/vendor/quiche/src/buffers.rs +105 -0
  63. package/vendor/quiche/src/build.rs +66 -0
  64. package/vendor/quiche/src/cid.rs +1079 -0
  65. package/vendor/quiche/src/crypto/boringssl.rs +373 -0
  66. package/vendor/quiche/src/crypto/mod.rs +671 -0
  67. package/vendor/quiche/src/dgram.rs +118 -0
  68. package/vendor/quiche/src/error.rs +263 -0
  69. package/vendor/quiche/src/ffi.rs +2290 -0
  70. package/vendor/quiche/src/flowcontrol.rs +246 -0
  71. package/vendor/quiche/src/frame.rs +2172 -0
  72. package/vendor/quiche/src/h3/AGENTS.md +54 -0
  73. package/vendor/quiche/src/h3/ffi.rs +442 -0
  74. package/vendor/quiche/src/h3/frame.rs +1404 -0
  75. package/vendor/quiche/src/h3/mod.rs +8223 -0
  76. package/vendor/quiche/src/h3/qpack/decoder.rs +288 -0
  77. package/vendor/quiche/src/h3/qpack/encoder.rs +235 -0
  78. package/vendor/quiche/src/h3/qpack/mod.rs +202 -0
  79. package/vendor/quiche/src/h3/qpack/static_table.rs +323 -0
  80. package/vendor/quiche/src/h3/stream.rs +1595 -0
  81. package/vendor/quiche/src/lib.rs +9556 -0
  82. package/vendor/quiche/src/minmax.rs +446 -0
  83. package/vendor/quiche/src/packet.rs +2334 -0
  84. package/vendor/quiche/src/path.rs +1374 -0
  85. package/vendor/quiche/src/pmtud.rs +652 -0
  86. package/vendor/quiche/src/rand.rs +64 -0
  87. package/vendor/quiche/src/range_buf.rs +186 -0
  88. package/vendor/quiche/src/ranges.rs +755 -0
  89. package/vendor/quiche/src/recovery/AGENTS.md +80 -0
  90. package/vendor/quiche/src/recovery/bandwidth.rs +565 -0
  91. package/vendor/quiche/src/recovery/bytes_in_flight.rs +179 -0
  92. package/vendor/quiche/src/recovery/congestion/cubic.rs +1038 -0
  93. package/vendor/quiche/src/recovery/congestion/delivery_rate.rs +514 -0
  94. package/vendor/quiche/src/recovery/congestion/hystart.rs +241 -0
  95. package/vendor/quiche/src/recovery/congestion/mod.rs +361 -0
  96. package/vendor/quiche/src/recovery/congestion/prr.rs +238 -0
  97. package/vendor/quiche/src/recovery/congestion/recovery.rs +1170 -0
  98. package/vendor/quiche/src/recovery/congestion/reno.rs +291 -0
  99. package/vendor/quiche/src/recovery/congestion/test_sender.rs +201 -0
  100. package/vendor/quiche/src/recovery/gcongestion/bbr/bandwidth_sampler.rs +1947 -0
  101. package/vendor/quiche/src/recovery/gcongestion/bbr/windowed_filter.rs +158 -0
  102. package/vendor/quiche/src/recovery/gcongestion/bbr.rs +37 -0
  103. package/vendor/quiche/src/recovery/gcongestion/bbr2/drain.rs +120 -0
  104. package/vendor/quiche/src/recovery/gcongestion/bbr2/mode.rs +318 -0
  105. package/vendor/quiche/src/recovery/gcongestion/bbr2/network_model.rs +784 -0
  106. package/vendor/quiche/src/recovery/gcongestion/bbr2/probe_bw.rs +729 -0
  107. package/vendor/quiche/src/recovery/gcongestion/bbr2/probe_rtt.rs +175 -0
  108. package/vendor/quiche/src/recovery/gcongestion/bbr2/startup.rs +190 -0
  109. package/vendor/quiche/src/recovery/gcongestion/bbr2.rs +855 -0
  110. package/vendor/quiche/src/recovery/gcongestion/mod.rs +275 -0
  111. package/vendor/quiche/src/recovery/gcongestion/pacer.rs +294 -0
  112. package/vendor/quiche/src/recovery/gcongestion/recovery.rs +1384 -0
  113. package/vendor/quiche/src/recovery/mod.rs +3086 -0
  114. package/vendor/quiche/src/recovery/rtt.rs +152 -0
  115. package/vendor/quiche/src/stream/mod.rs +2210 -0
  116. package/vendor/quiche/src/stream/recv_buf.rs +1236 -0
  117. package/vendor/quiche/src/stream/send_buf.rs +849 -0
  118. package/vendor/quiche/src/test_utils.rs +681 -0
  119. package/vendor/quiche/src/tests.rs +12922 -0
  120. package/vendor/quiche/src/tls/boringssl.rs +375 -0
  121. package/vendor/quiche/src/tls/mod.rs +1245 -0
  122. package/vendor/quiche/src/transport_params.rs +628 -0
@@ -0,0 +1,175 @@
1
+ // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ // Copyright (C) 2023, Cloudflare, Inc.
6
+ // All rights reserved.
7
+ //
8
+ // Redistribution and use in source and binary forms, with or without
9
+ // modification, are permitted provided that the following conditions are
10
+ // met:
11
+ //
12
+ // * Redistributions of source code must retain the above copyright notice,
13
+ // this list of conditions and the following disclaimer.
14
+ //
15
+ // * Redistributions in binary form must reproduce the above copyright
16
+ // notice, this list of conditions and the following disclaimer in the
17
+ // documentation and/or other materials provided with the distribution.
18
+ //
19
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20
+ // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21
+ // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
+ // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23
+ // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24
+ // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
+ // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
+ // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
+ // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ use std::time::Instant;
32
+
33
+ use crate::recovery::gcongestion::bbr2::Params;
34
+ use crate::recovery::gcongestion::Acked;
35
+ use crate::recovery::gcongestion::Lost;
36
+ use crate::recovery::RecoveryStats;
37
+
38
+ use super::mode::Cycle;
39
+ use super::mode::Mode;
40
+ use super::mode::ModeImpl;
41
+ use super::network_model::BBRv2NetworkModel;
42
+ use super::BBRv2CongestionEvent;
43
+ use super::Limits;
44
+
45
+ #[derive(Debug)]
46
+ pub(super) struct ProbeRTT {
47
+ pub(super) model: BBRv2NetworkModel,
48
+ pub(super) cycle: Cycle,
49
+ exit_time: Option<Instant>,
50
+ }
51
+
52
+ impl ProbeRTT {
53
+ pub(super) fn new(model: BBRv2NetworkModel, cycle: Cycle) -> Self {
54
+ ProbeRTT {
55
+ model,
56
+ cycle,
57
+ exit_time: None,
58
+ }
59
+ }
60
+
61
+ fn into_probe_bw(
62
+ mut self, now: Instant, congestion_event: Option<&BBRv2CongestionEvent>,
63
+ params: &Params,
64
+ ) -> Mode {
65
+ self.leave(now, congestion_event);
66
+ let mut next_mode = Mode::probe_bw(self.model, self.cycle);
67
+ next_mode.enter(now, congestion_event, params);
68
+ next_mode
69
+ }
70
+
71
+ fn inflight_target(&self, params: &Params) -> usize {
72
+ self.model.bdp(
73
+ self.model.max_bandwidth(),
74
+ params.probe_rtt_inflight_target_bdp_fraction,
75
+ )
76
+ }
77
+ }
78
+
79
+ impl ModeImpl for ProbeRTT {
80
+ #[cfg(feature = "qlog")]
81
+ fn state_str(&self) -> &'static str {
82
+ "bbr_probe_rtt"
83
+ }
84
+
85
+ fn is_probing_for_bandwidth(&self) -> bool {
86
+ false
87
+ }
88
+
89
+ fn on_congestion_event(
90
+ mut self, _prior_in_flight: usize, event_time: Instant,
91
+ _acked_packets: &[Acked], _lost_packets: &[Lost],
92
+ congestion_event: &mut BBRv2CongestionEvent,
93
+ _target_bytes_inflight: usize, params: &Params,
94
+ _recovery_stats: &mut RecoveryStats, _cwnd: usize,
95
+ ) -> Mode {
96
+ match self.exit_time {
97
+ None => {
98
+ if congestion_event.bytes_in_flight <=
99
+ self.inflight_target(params)
100
+ {
101
+ self.exit_time = Some(
102
+ congestion_event.event_time + params.probe_rtt_duration,
103
+ )
104
+ }
105
+ Mode::ProbeRTT(self)
106
+ },
107
+ Some(exit_time) =>
108
+ if congestion_event.event_time > exit_time {
109
+ self.into_probe_bw(event_time, Some(congestion_event), params)
110
+ } else {
111
+ Mode::ProbeRTT(self)
112
+ },
113
+ }
114
+ }
115
+
116
+ fn get_cwnd_limits(&self, params: &Params) -> Limits<usize> {
117
+ let inflight_upper_bound = self
118
+ .model
119
+ .inflight_lo()
120
+ .min(self.model.inflight_hi_with_headroom(params));
121
+ Limits::no_greater_than(
122
+ inflight_upper_bound.min(self.inflight_target(params)),
123
+ )
124
+ }
125
+
126
+ fn on_exit_quiescence(
127
+ self, now: Instant, _quiescence_start_time: Instant, params: &Params,
128
+ ) -> Mode {
129
+ match self.exit_time {
130
+ None => self.into_probe_bw(now, None, params),
131
+ Some(exit_time) if now > exit_time =>
132
+ self.into_probe_bw(now, None, params),
133
+ Some(_) => Mode::ProbeRTT(self),
134
+ }
135
+ }
136
+
137
+ fn enter(
138
+ &mut self, _now: Instant,
139
+ _congestion_event: Option<&BBRv2CongestionEvent>, params: &Params,
140
+ ) {
141
+ self.model.set_pacing_gain(params.probe_rtt_pacing_gain);
142
+ self.model.set_cwnd_gain(params.probe_rtt_cwnd_gain);
143
+ self.exit_time = None;
144
+ }
145
+
146
+ fn leave(
147
+ &mut self, _now: Instant,
148
+ _congestion_event: Option<&BBRv2CongestionEvent>,
149
+ ) {
150
+ }
151
+ }
152
+
153
+ #[cfg(test)]
154
+ mod tests {
155
+ use super::*;
156
+ use crate::recovery::gcongestion::bbr2::DEFAULT_PARAMS;
157
+ use crate::BbrParams;
158
+ use std::time::Duration;
159
+
160
+ #[test]
161
+ fn probe_rtt_params() {
162
+ let custom_bbr_settings = BbrParams {
163
+ probe_rtt_pacing_gain: Some(0.8),
164
+ probe_rtt_cwnd_gain: Some(0.5),
165
+ ..Default::default()
166
+ };
167
+ let params = &DEFAULT_PARAMS.with_overrides(&custom_bbr_settings);
168
+
169
+ let model = BBRv2NetworkModel::new(params, Duration::from_millis(333));
170
+ let mut probe_rtt = ProbeRTT::new(model, Cycle::default());
171
+ probe_rtt.enter(Instant::now(), None, params);
172
+ assert_eq!(probe_rtt.model.pacing_gain(), 0.8);
173
+ assert_eq!(probe_rtt.model.cwnd_gain(), 0.5);
174
+ }
175
+ }
@@ -0,0 +1,190 @@
1
+ // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ // Copyright (C) 2023, Cloudflare, Inc.
6
+ // All rights reserved.
7
+ //
8
+ // Redistribution and use in source and binary forms, with or without
9
+ // modification, are permitted provided that the following conditions are
10
+ // met:
11
+ //
12
+ // * Redistributions of source code must retain the above copyright notice,
13
+ // this list of conditions and the following disclaimer.
14
+ //
15
+ // * Redistributions in binary form must reproduce the above copyright
16
+ // notice, this list of conditions and the following disclaimer in the
17
+ // documentation and/or other materials provided with the distribution.
18
+ //
19
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20
+ // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21
+ // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
+ // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23
+ // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24
+ // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
+ // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
+ // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
+ // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ use std::time::Instant;
32
+
33
+ use crate::recovery::gcongestion::bbr2::Params;
34
+ use crate::recovery::RecoveryStats;
35
+ use crate::recovery::StartupExit;
36
+ use crate::recovery::StartupExitReason;
37
+
38
+ use super::mode::Mode;
39
+ use super::mode::ModeImpl;
40
+ use super::network_model::BBRv2NetworkModel;
41
+ use super::Acked;
42
+ use super::BBRv2CongestionEvent;
43
+ use super::Limits;
44
+ use super::Lost;
45
+
46
+ #[derive(Debug)]
47
+ pub(super) struct Startup {
48
+ pub(super) model: BBRv2NetworkModel,
49
+ }
50
+
51
+ impl ModeImpl for Startup {
52
+ #[cfg(feature = "qlog")]
53
+ fn state_str(&self) -> &'static str {
54
+ "bbr_startup"
55
+ }
56
+
57
+ fn is_probing_for_bandwidth(&self) -> bool {
58
+ true
59
+ }
60
+
61
+ fn on_congestion_event(
62
+ mut self, _prior_in_flight: usize, event_time: Instant,
63
+ _acked_packets: &[Acked], _lost_packets: &[Lost],
64
+ congestion_event: &mut BBRv2CongestionEvent,
65
+ _target_bytes_inflight: usize, params: &Params,
66
+ recovery_stats: &mut RecoveryStats, cwnd: usize,
67
+ ) -> Mode {
68
+ if self.model.full_bandwidth_reached() {
69
+ return self.into_drain(event_time, Some(congestion_event), params);
70
+ }
71
+
72
+ if !congestion_event.end_of_round_trip {
73
+ return Mode::Startup(self);
74
+ }
75
+
76
+ let has_bandwidth_growth =
77
+ self.model.has_bandwidth_growth(congestion_event, params);
78
+ if self.model.full_bandwidth_reached() {
79
+ recovery_stats.set_startup_exit(StartupExit::new(
80
+ cwnd,
81
+ Some(self.model.max_bandwidth()),
82
+ StartupExitReason::BandwidthPlateau,
83
+ ));
84
+ }
85
+
86
+ let check_persisten_queue =
87
+ params.max_startup_queue_rounds > 0 && !has_bandwidth_growth;
88
+ if check_persisten_queue {
89
+ // https://github.com/google/quiche/blob/27eca0257490df89d2bd2c2a8bcea15565e7831c/quiche/quic/core/congestion_control/bbr2_startup.cc#L60-L62
90
+ // 1.75 is less than the 2x CWND gain, but substantially more than
91
+ // 1.25x, the minimum bandwidth increase expected during
92
+ // STARTUP.
93
+ self.model.check_persistent_queue(1.75, params);
94
+ if self.model.full_bandwidth_reached() {
95
+ recovery_stats.set_startup_exit(StartupExit::new(
96
+ cwnd,
97
+ Some(self.model.max_bandwidth()),
98
+ StartupExitReason::PersistentQueue,
99
+ ));
100
+ }
101
+ }
102
+
103
+ // TCP BBR always exits upon excessive losses. QUIC BBRv1 does not exit
104
+ // upon excessive losses, if enough bandwidth growth is observed or if the
105
+ // sample was app limited.
106
+ let check_for_excessive_loss = !congestion_event.last_packet_send_state.is_app_limited &&
107
+ !has_bandwidth_growth &&
108
+ // check for excessive loss only if not exiting for other reasons
109
+ !self.model.full_bandwidth_reached();
110
+
111
+ if check_for_excessive_loss {
112
+ self.check_excessive_losses(congestion_event, params);
113
+
114
+ if self.model.full_bandwidth_reached() {
115
+ recovery_stats.set_startup_exit(StartupExit::new(
116
+ cwnd,
117
+ Some(self.model.max_bandwidth()),
118
+ StartupExitReason::Loss,
119
+ ));
120
+ }
121
+ }
122
+
123
+ if self.model.full_bandwidth_reached() {
124
+ self.into_drain(event_time, Some(congestion_event), params)
125
+ } else {
126
+ Mode::Startup(self)
127
+ }
128
+ }
129
+
130
+ fn get_cwnd_limits(&self, _params: &Params) -> Limits<usize> {
131
+ Limits {
132
+ lo: 0,
133
+ hi: self.model.inflight_lo(),
134
+ }
135
+ }
136
+
137
+ fn on_exit_quiescence(
138
+ self, _now: Instant, _quiescence_start_time: Instant, _params: &Params,
139
+ ) -> Mode {
140
+ Mode::Startup(self)
141
+ }
142
+
143
+ fn enter(
144
+ &mut self, _now: Instant,
145
+ _congestion_event: Option<&BBRv2CongestionEvent>, _params: &Params,
146
+ ) {
147
+ unreachable!("Enter should never be called for startup")
148
+ }
149
+
150
+ fn leave(
151
+ &mut self, _now: Instant,
152
+ _congestion_event: Option<&BBRv2CongestionEvent>,
153
+ ) {
154
+ // Clear bandwidth_lo if it's set during STARTUP.
155
+ self.model.clear_bandwidth_lo();
156
+ }
157
+ }
158
+
159
+ impl Startup {
160
+ fn into_drain(
161
+ mut self, now: Instant, congestion_event: Option<&BBRv2CongestionEvent>,
162
+ params: &Params,
163
+ ) -> Mode {
164
+ self.leave(now, congestion_event);
165
+ let mut next_mode = Mode::drain(self.model);
166
+ next_mode.enter(now, congestion_event, params);
167
+ next_mode
168
+ }
169
+
170
+ fn check_excessive_losses(
171
+ &mut self, congestion_event: &mut BBRv2CongestionEvent, params: &Params,
172
+ ) {
173
+ // At the end of a round trip. Check if loss is too high in this round.
174
+ if self.model.is_inflight_too_high(
175
+ congestion_event,
176
+ params.startup_full_loss_count,
177
+ params,
178
+ ) {
179
+ let mut new_inflight_hi = self.model.bdp0();
180
+
181
+ if params.startup_loss_exit_use_max_delivered_for_inflight_hi {
182
+ new_inflight_hi = new_inflight_hi
183
+ .max(self.model.max_bytes_delivered_in_round());
184
+ }
185
+
186
+ self.model.set_inflight_hi(new_inflight_hi);
187
+ self.model.set_full_bandwidth_reached();
188
+ }
189
+ }
190
+ }