]> git.ipfire.org Git - thirdparty/tor.git/commit
Reduce size of congestion control next_*_event fields.
authorMike Perry <mikeperry-git@torproject.org>
Wed, 21 Dec 2022 17:35:09 +0000 (17:35 +0000)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 10 Jan 2023 16:56:21 +0000 (11:56 -0500)
commita9a27ffa3a2b134f7586d1259e2c077b0b6cb4f7
tree54845fb0d08508641f26c53cd5412780f6cbf3f7
parentf4499bb5e27a96e1558f99edb081de473c13c7a6
Reduce size of congestion control next_*_event fields.

Since these are derived from the number of SENDMEs in a cwnd/cc update,
and a cwnd should not exceed ~10k, there's plenty of room in uint16_t
for them, even if the network gets significantly faster.
src/core/or/congestion_control_nola.c
src/core/or/congestion_control_st.h
src/core/or/congestion_control_westwood.c