GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 4c28d98f authored by Cecylia Bocovich's avatar Cecylia Bocovich

Move proxy datachannel timeout value to config

parent d05041a2
...@@ -26,6 +26,9 @@ Config.prototype.rateLimitHistory = 5.0; ...@@ -26,6 +26,9 @@ Config.prototype.rateLimitHistory = 5.0;
Config.prototype.defaultBrokerPollInterval = 300.0 * 1000; Config.prototype.defaultBrokerPollInterval = 300.0 * 1000;
// Timeout after sending answer before datachannel is opened
Config.prototype.datachannelTimeout = 20 * 1000;
Config.prototype.maxNumClients = 1; Config.prototype.maxNumClients = 1;
Config.prototype.proxyType = ""; Config.prototype.proxyType = "";
......
...@@ -76,7 +76,7 @@ class Snowflake { ...@@ -76,7 +76,7 @@ class Snowflake {
log('proxypair datachannel timed out waiting for open'); log('proxypair datachannel timed out waiting for open');
return pair.close(); return pair.close();
} }
}), 20000); // 20 second timeout }), this.config.datachannelTimeout);
}, function() { }, function() {
//on error, close proxy pair //on error, close proxy pair
return pair.close(); return pair.close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment