summaryrefslogtreecommitdiffstats
path: root/modules/libpref
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-12 12:41:26 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-12 12:41:26 +0000
commit2fa993b5639e04c7e1d7403ecf9175a223ce50b4 (patch)
tree99e2f5cdd5415e0d7eb3e24f80f5901be23611c6 /modules/libpref
parent4281fcc163f2a9ddf8409d6491d54a4620c037bf (diff)
downloadUXP-2fa993b5639e04c7e1d7403ecf9175a223ce50b4.tar
UXP-2fa993b5639e04c7e1d7403ecf9175a223ce50b4.tar.gz
UXP-2fa993b5639e04c7e1d7403ecf9175a223ce50b4.tar.lz
UXP-2fa993b5639e04c7e1d7403ecf9175a223ce50b4.tar.xz
UXP-2fa993b5639e04c7e1d7403ecf9175a223ce50b4.zip
Issue #1695 - Add clamping to websocket polling timeouts.
Diffstat (limited to 'modules/libpref')
-rw-r--r--modules/libpref/init/all.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index b6af98863..8fcebed74 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1660,6 +1660,11 @@ pref("network.websocket.timeout.open", 20);
// close message
pref("network.websocket.timeout.close", 20);
+// Setting this to true will clamp the websocket timeout value to a minimum
+// regardless if there are pending events on the thread.
+// This is a workaround for runaway polling, see issue #1695
+pref("network.websocket.timeout.clamped", false);
+
// the number of seconds of idle read activity to sustain before sending a
// ping probe. 0 to disable.
pref("network.websocket.timeout.ping.request", 0);