summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2021-11-04 00:46:11 +0000
committerMike Perry <mikeperry-git@torproject.org>2022-02-22 19:28:34 +0000
commit76bdadce121b0c33f46bb3d4e5eb0e8dc3277614 (patch)
tree2d60fb34fb9315bb98927559fa7a1147988ef1c9 /src/feature
parentb6d5fbba7d7e0e2cfa0c0cbb7f91e6039e3decf9 (diff)
downloadtor-76bdadce121b0c33f46bb3d4e5eb0e8dc3277614.tar.gz
tor-76bdadce121b0c33f46bb3d4e5eb0e8dc3277614.zip
Hook up client usage of congestion control negotiation
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/control/control_cmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c
index b19935e456..dd0cde4f7d 100644
--- a/src/feature/control/control_cmd.c
+++ b/src/feature/control/control_cmd.c
@@ -823,7 +823,10 @@ handle_control_extendcircuit(control_connection_t *conn,
first_node = zero_circ;
SMARTLIST_FOREACH(nodes, const node_t *, node,
{
- extend_info_t *info = extend_info_from_node(node, first_node);
+ /* We treat every hop as an exit to try to negotiate congestion
+ * control, because we have no idea which hop the controller wil
+ * try to use for streams and when */
+ extend_info_t *info = extend_info_from_node(node, first_node, true);
if (!info) {
tor_assert_nonfatal(first_node);
log_warn(LD_CONTROL,