From 8eefd590953b7dc113e1a90f7c7d0cb51cac5a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Mon, 9 Aug 2021 01:02:34 -0300 Subject: [PATCH] Revert "Change handshake timout to 200ms" This reverts commit 5fb51c07e6a5bd2777c2cf4a7ae300419878c5b5. 200ms is too little for some setups, and will make authentication not work even with weechat>=3.0. For a specific example, my VPN setup has a roundtrip of 300ms. --- src/js/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/connection.js b/src/js/connection.js index 5ee80c6..8489a0a 100644 --- a/src/js/connection.js +++ b/src/js/connection.js @@ -51,7 +51,7 @@ export const connectionFactory = ['$rootScope', '$log', 'handlers', 'models', 's // too high, this time should be reduced if determined the weechat // is lower than 2.9 // This time also includes the time it takes to generate the hash - var WAIT_TIME_OLD_WEECHAT = 200; //ms + var WAIT_TIME_OLD_WEECHAT = 2000; //ms // Wait long enough to assume we are on a version < 2.9 var handShakeTimeout = setTimeout(function () {