mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Make the proxy to report the number of clients to the broker
So the assignment of proxies is based on the load. The number of clients is ronded down to 8. Existing proxies that doesn't report the number of clients will be distributed equaly to new proxies until they get 8 clients, that is okish as the existing proxies do have a maximum capacity of 10. Fixes #40048
This commit is contained in:
parent
74bdb85b30
commit
7a1857c42f
9 changed files with 165 additions and 77 deletions
|
@ -141,7 +141,9 @@ POST /proxy HTTP
|
|||
{
|
||||
Sid: [generated session id of proxy],
|
||||
Version: 1.1,
|
||||
Type: ["badge"|"webext"|"standalone"|"mobile"]
|
||||
Type: ["badge"|"webext"|"standalone"|"mobile"],
|
||||
NAT: ["unknown"|"restricted"|"unrestricted"],
|
||||
Clients: [number of current clients, rounded down to multiples of 8]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue