<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/congestion/test_utils.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-03-19T16:31:20Z</updated>
<entry>
<title>proto: Remove unnecessary test-gating</title>
<updated>2026-03-19T16:31:20Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-03-19T16:31:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f66689795235a29c853181e85d7179cee3f24bc1'/>
<id>urn:sha1:f66689795235a29c853181e85d7179cee3f24bc1</id>
<content type='text'>
The `test_util` modules is already gated behind
`#[cfg(any(test, feature = "testing"))]`.
</content>
</entry>
<entry>
<title>proto: Pass owned CongestionWindowParams to CongestionControl::new.</title>
<updated>2025-09-04T09:11:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2025-08-26T10:41:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=def4aca14b010f9fdb3063a97824737547b8d83b'/>
<id>urn:sha1:def4aca14b010f9fdb3063a97824737547b8d83b</id>
<content type='text'>
We no longer need to clone `CongestionWindowParams` now that it
implements `Copy`.

Resolves a clippy warning.
</content>
</entry>
<entry>
<title>Switch Cargo.toml files to edition 2024.</title>
<updated>2025-08-07T15:28:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-06T01:19:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77b0de43b8c67cdb81befe0680a3df43b6ad37bc'/>
<id>urn:sha1:77b0de43b8c67cdb81befe0680a3df43b6ad37bc</id>
<content type='text'>
First, run

```
git grep -l "^edition =" |
    xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;'
```

Second, manually verify that all Cargo.toml files have changed,
and nothing else has changed.

Third, run cargo fmt again.
</content>
</entry>
<entry>
<title>tor-proto: Remove no-longer needed clone()s.</title>
<updated>2025-06-11T17:48:35Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2025-03-21T18:17:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2f332ad090fef8d333e179be33deadaeb39f4c13'/>
<id>urn:sha1:2f332ad090fef8d333e179be33deadaeb39f4c13</id>
<content type='text'>
This doesn't really change anything, but removing the `.clone()` makes
it a bit more obvious that copying the `*Params` is a lightweight
operation.
</content>
</entry>
<entry>
<title>proto: Refactor cc fallback.</title>
<updated>2025-06-10T15:52:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-06-05T16:38:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fef3034648dede7cc5fb2d698f2825e44144fe24'/>
<id>urn:sha1:fef3034648dede7cc5fb2d698f2825e44144fe24</id>
<content type='text'>
The fallback CC algorithm is _always_ fixed-window, and we should only
use it when the selected CC algorithm is not supported.
</content>
</entry>
<entry>
<title>tests: Add CC ntorv3 negotiation unit test</title>
<updated>2025-04-23T18:36:28Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-01-22T20:12:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e8b72b7400aa7f34cf9465818307f59433f4e8f0'/>
<id>urn:sha1:e8b72b7400aa7f34cf9465818307f59433f4e8f0</id>
<content type='text'>
Also add one for the sendme_inc validity function.

Part of #1817

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>congestion: Setup a fallback algorithm in the params</title>
<updated>2025-04-23T18:36:28Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-01-22T16:17:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f4a0429dbb20f3087c9591344f8d701cef77a7e7'/>
<id>urn:sha1:f4a0429dbb20f3087c9591344f8d701cef77a7e7</id>
<content type='text'>
CircParameters is built before path selection and thus once we start
building the hops, we can't access the consensus values that were used
to build it in the first place.

For congestion control, we require a fallback algorithm in case the hop
doesn't support FlowCtrl=2.

This commit adds a "fallback_alg" to the CC parameters which will be
used for this exact case.

Part of #1817

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>congestion: Remove Default from every parameters</title>
<updated>2025-01-16T14:16:01Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-01-15T14:13:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b4378a03332715d34de75617ee43775690fdd9b0'/>
<id>urn:sha1:b4378a03332715d34de75617ee43775690fdd9b0</id>
<content type='text'>
Important to enforce that every field is explicitely set so we avoid
forgetting fields.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>congestion: Remove FixedWindow start window default value</title>
<updated>2025-01-16T14:16:01Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-01-08T19:53:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=14ee43b3ae64d2c64cfa14c2cd054965c5b7c366'/>
<id>urn:sha1:14ee43b3ae64d2c64cfa14c2cd054965c5b7c366</id>
<content type='text'>
In unit tests, we set a 1000 by default but else, we don't set a default
so our implementation doesn't forget to set the right value from the
consensus.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>congestion: Make a test_utils.rs</title>
<updated>2025-01-16T14:16:01Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-01-08T15:50:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6a1ee397fad1a5936e1f90d2c2c0744f8a0536fd'/>
<id>urn:sha1:6a1ee397fad1a5936e1f90d2c2c0744f8a0536fd</id>
<content type='text'>
Instead of having the congestion.rs test module public, make a
test_utils.rs file that contains code for other unit tests within the
congestion module.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
</feed>
