summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNode.js GitHub Bot <github-bot@iojs.org>2023-05-07 00:25:09 +0000
committerNode.js GitHub Bot <github-bot@iojs.org>2023-05-07 00:26:44 +0000
commit119464a8e889ae048729ce83c6f1c50b1d985d3b (patch)
tree2031f71d8720002c97bdfc2db3aa197681cde393
parent5e7d37e1e3bd9ea20eb626493e935ca4c204bcf1 (diff)
downloadnode-new-actions/tools-update-ngtcp2.tar.gz
deps: update ngtcp2 to 0.15.0actions/tools-update-ngtcp2
-rw-r--r--deps/ngtcp2/ngtcp2/lib/ngtcp2_cc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/deps/ngtcp2/ngtcp2/lib/ngtcp2_cc.c b/deps/ngtcp2/ngtcp2/lib/ngtcp2_cc.c
index 32f7cd488a..cc0472646e 100644
--- a/deps/ngtcp2/ngtcp2/lib/ngtcp2_cc.c
+++ b/deps/ngtcp2/ngtcp2/lib/ngtcp2_cc.c
@@ -371,16 +371,6 @@ void ngtcp2_cc_cubic_cc_on_pkt_acked(ngtcp2_cc *cc, ngtcp2_conn_stat *cstat,
target = cwnd_thres;
}
- cwnd_thres =
- (target * (((t + cstat->smoothed_rtt) << 10) / NGTCP2_SECONDS)) >> 10;
- if (cwnd_thres < cstat->cwnd) {
- target = cstat->cwnd;
- } else if (2 * cwnd_thres > 3 * cstat->cwnd) {
- target = cstat->cwnd * 3 / 2;
- } else {
- target = cwnd_thres;
- }
-
if (target > cstat->cwnd) {
m = cubic->pending_add +
cstat->max_tx_udp_payload_size * (target - cstat->cwnd);