This is an automated email from the git hooks/post-receive script.
cohosh pushed a change to branch main in repository pluggable-transports/snowflake-webext.
from 3345eda Ensure active status is set for badge and extension new 6b3f4fc Have unrestricted proxies always poll frequently new a8b7508 Have working unrestricted proxies server 2 clients max
The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: config.js | 3 ++- snowflake.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
This is an automated email from the git hooks/post-receive script.
cohosh pushed a commit to branch main in repository pluggable-transports/snowflake-webext.
commit 6b3f4fc527c51f7bf24c5f4b74f4a29a67cf8109 Author: Cecylia Bocovich cohosh@torproject.org AuthorDate: Thu Sep 29 11:23:57 2022 -0400
Have unrestricted proxies always poll frequently --- config.js | 3 ++- snowflake.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/config.js b/config.js index 3142f5f..8f42176 100644 --- a/config.js +++ b/config.js @@ -27,6 +27,7 @@ Config.prototype.rateLimitHistory = 5.0; Config.prototype.defaultBrokerPollInterval = 60.0 * 1000; //1 poll every minutes Config.prototype.slowestBrokerPollInterval = 6 * 60 * 60.0 * 1000; //1 poll every 6 hours Config.prototype.pollAdjustment = 100.0 * 1000; +Config.prototype.fastBrokerPollInterval = 30 * 1000; //1 poll every 30 seconds
// Recheck our NAT type once every 2 days Config.prototype.natCheckInterval = 2 * 24 * 60 * 60 * 1000; @@ -52,4 +53,4 @@ Config.prototype.pcConfig = {
Config.PROBEURL = "https://snowflake-broker.freehaven.net:8443/probe";
-Config.prototype.allowedRelayPattern="snowflake.torproject.net"; \ No newline at end of file +Config.prototype.allowedRelayPattern="snowflake.torproject.net"; diff --git a/snowflake.js b/snowflake.js index 8685753..fbff283 100644 --- a/snowflake.js +++ b/snowflake.js @@ -113,6 +113,9 @@ class Snowflake { Math.max(this.pollInterval - this.config.pollAdjustment, this.config.defaultBrokerPollInterval); this.natFailures = 0; + if (this.ui.natType == "unrestricted") { + this.pollInterval = this.config.fastBrokerPollInterval; + } } }), this.config.datachannelTimeout); }, function () {
This is an automated email from the git hooks/post-receive script.
cohosh pushed a commit to branch main in repository pluggable-transports/snowflake-webext.
commit a8b7508ab0587276faec1a0290732c4bea8c5362 Author: Cecylia Bocovich cohosh@torproject.org AuthorDate: Thu Sep 29 11:34:05 2022 -0400
Have working unrestricted proxies server 2 clients max --- snowflake.js | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/snowflake.js b/snowflake.js index fbff283..abb4c11 100644 --- a/snowflake.js +++ b/snowflake.js @@ -105,6 +105,7 @@ class Snowflake { this.ui.natType = "restricted"; console.log("Learned NAT type: restricted"); this.natFailures = 0; + this.config.maxNumClients = 1; } this.broker.setNATType(this.ui.natType); } else { @@ -115,6 +116,7 @@ class Snowflake { this.natFailures = 0; if (this.ui.natType == "unrestricted") { this.pollInterval = this.config.fastBrokerPollInterval; + this.config.maxNumClients = 2; } } }), this.config.datachannelTimeout);
tor-commits@lists.torproject.org