Avoid increasing the congestion window if it is not full.
commit48de1a392e0694662944cbeb91d96efed6b8c38e
authorMike Perry <mikeperry-git@torproject.org>
Fri, 16 Dec 2022 21:12:50 +0000 (16 21:12 +0000)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 10 Jan 2023 16:56:21 +0000 (10 11:56 -0500)
tree4007b21fd24a706c583333e27bccc13443ca1ddc
parent35e221688b2636c405332bc6140d6e5cc483b0bf
Avoid increasing the congestion window if it is not full.

Also provides some stickiness, so that once full, the congestion window is
considered still full for the rest of an update cycle, or the entire
congestion window.

In this way, we avoid increasing the congestion window if it is not fully
utilized, but we can still back off in this case. This substantially reduces
queue use in Shadow.
src/core/or/congestion_control_st.h
src/core/or/congestion_control_vegas.c