mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Changed variable name for multiplexed clients
The variable maxNumClients was unused, while connectionsPerClient was used for spawning multiple proxyPairs. The former is a more appropriate name for the multiplexing behaviour we use it for. Multiplexing now just works thanks to implementing ticket #31310.
This commit is contained in:
parent
64b66c855f
commit
300a23c6a0
2 changed files with 1 additions and 3 deletions
|
@ -24,8 +24,6 @@ Config.prototype.defaultBrokerPollInterval = 300.0 * 1000;
|
||||||
|
|
||||||
Config.prototype.maxNumClients = 1;
|
Config.prototype.maxNumClients = 1;
|
||||||
|
|
||||||
Config.prototype.connectionsPerClient = 1;
|
|
||||||
|
|
||||||
// TODO: Different ICE servers.
|
// TODO: Different ICE servers.
|
||||||
Config.prototype.pcConfig = {
|
Config.prototype.pcConfig = {
|
||||||
iceServers: [
|
iceServers: [
|
||||||
|
|
|
@ -119,7 +119,7 @@ class Snowflake {
|
||||||
}
|
}
|
||||||
|
|
||||||
makeProxyPair() {
|
makeProxyPair() {
|
||||||
if (this.proxyPairs.length >= this.config.connectionsPerClient) {
|
if (this.proxyPairs.length >= this.config.maxNumClients) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var pair;
|
var pair;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue