- Mar 12, 2025
-
-
This migrates from using `atomic.LoadInt64` on `int64` to making the `clients` field itself `atomic.Int64`. Also `count` now takes `*tokens_t` by reference, which fixes a linter warning. It's not clear to me why it warned about this, but I simplified it anyway.
- Mar 11, 2025
-
-
WofWca authored
And `failedConnectionCount`. Convert the `int` / `uint` to `atomic.Int32` / `atomic.Uint32`. The race was discovered by running a proxy with the `-race` flag.
-
WofWca authored
Although it does not look like that there are situations where it is critical to use a mutex, because it's only used when performing rendezvous with a proxy, which doesn't happen too frequently, let's still do it just to be sure.
-
WofWca authored
Some of the changes do not appear to have a potential race condition, so there it is purely a refactor, while in others (e.g. in broker.go and in proxy/lib/snowflake.go) we do use the same variable from multiple threads / functions.
-
-
Cecylia Bocovich authored
-
-
-
Cecylia Bocovich authored
Our metrics were undercounting client polls by missing the case where clients are matched with a snowflake but receive a timeout before the snowflake responds with its answer. This change adds a new metric, called client-snowflake-timeout-count, to the 24 hour broker stats and a new "timeout" status label for prometheus metrics.
-
- Mar 10, 2025
-
-
- Mar 05, 2025
-
-
Cecylia Bocovich authored
Closes #40377
-
- Mar 04, 2025
-
-
Cecylia Bocovich authored
To test that the broker responds with a proxy answer if available, have only one valid client offer to ensure metrics will always be in the first multiple of 8.
-
Cecylia Bocovich authored
This fixes a race condition in tests where sometimes snowflake matching happens before enough snowflakes get added to the heap.
-
- Mar 03, 2025
-
- Feb 25, 2025
-
-
Cecylia Bocovich authored
Fixes a bug where socksAcceptLoop was reusing the same client config when processing arguments from multiple SOCKS connections, causing different bridge lines to clobber each other.
-
- Feb 24, 2025
-
- Feb 20, 2025
-
-
Renovate Bot authored
-
Cecylia Bocovich authored
-
Cecylia Bocovich authored
Our SQS tests were not concurrency safe and we hadn't noticed until now because we were processing incoming SQS queue messages sequentially rather than in parallel. This fix removes the log output checks, which were prone to error anyway, and relies instead on gomock's expected function calls and strategic use of the context cancel function for each test.
-
Cecylia Bocovich authored
We're losing a lot of messages from the broker SQS queue because they are exceeding their maximum lifetime before being read and processed by the broker. This change speeds up that process by increasing the size of messagesChn and processing the messages within a go routine.
-
- Feb 17, 2025
-
-
This is a hack, and I'm not entirely sure how it works, but it appears to work, at least somewhat. See #40419 (comment 3141855).
-
- Feb 13, 2025
-
- Feb 12, 2025
-
-
As per tpo/anti-censorship/pluggable-transports/snowflake!502 (comment 3159902) . The comment was added in c28c8ca4, and got outdated apparently after 83c01565. Signed-off-by:
Cecylia Bocovich <cohosh@torproject.org>
-
This is related to tpo/anti-censorship/pluggable-transports/snowflake#40230. The initial MR that closed that issue, tpo/anti-censorship/pluggable-transports/snowflake!391, was not semantically correct, because `DataChannelTimeout` starts after the client has already received the answer. After tpo/anti-censorship/pluggable-transports/snowflake!498 (comment 3156256) the code became not only semantically incorrect, but also functionally incorrect because now if this timeout is hit by the proxy, the client is guaranteed to be gone already. This commit fixes it, by lowering the timeout. This addresses a suggestion in tpo/anti-censorship/pluggable-transports/snowflake#40447. This also closes tpo/anti-censorship/pluggable-transports/snowflake#40381 and supersedes tpo/anti-censorship/pluggable-transports/snowflake!415.
-
chore(deps): update gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/ptutil digest to efaf4e0 Signed-off-by:
Cecylia Bocovich <cohosh@torproject.org>
-
Signed-off-by:
Cecylia Bocovich <cohosh@torproject.org>
-
Signed-off-by:
Cecylia Bocovich <cohosh@torproject.org>
-
- Feb 11, 2025
-
-
- Feb 10, 2025
-
- Feb 06, 2025
-
-
- Feb 04, 2025
-
-
Cecylia Bocovich authored
Matches the observed timeout for CDN77, based on user reports. tpo/anti-censorship/pluggable-transports/snowflake#40446
-
- Jan 31, 2025
-
-
Renovate Bot authored
-
- Jan 30, 2025
-
-
Renovate Bot authored
-
- Jan 29, 2025
-