]> 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)
committerMike Perry <mikeperry-git@torproject.org>
Tue, 10 Jan 2023 15:46:03 +0000 (15:46 +0000)
commitb7759403bf3950e5f422c6d5e0276f0d0bb25e88
tree4352208565502f7a07fea3f47caab0e2788d0f66
parent967ae3ab0e31abc259b3213d99a6c02082ad0ae8
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