1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-01 21:21:58 +03:00

Add 60s to client-side timeout to account for slow HSes

This commit is contained in:
Kegan Dougal
2015-12-21 13:49:14 +00:00
parent a419e241a6
commit 2802092231

View File

@@ -19,7 +19,7 @@ var Filter = require("./filter");
// beyond that and wedge forever, so we need to track how long we are willing // beyond that and wedge forever, so we need to track how long we are willing
// to keep open the connection. This constant is *ADDED* to the timeout= value // to keep open the connection. This constant is *ADDED* to the timeout= value
// to determine the max time we're willing to wait. // to determine the max time we're willing to wait.
var BUFFER_PERIOD_MS = 20 * 1000; var BUFFER_PERIOD_MS = 80 * 1000;
function getFilterName(userId, suffix) { function getFilterName(userId, suffix) {
// scope this on the user ID because people may login on many accounts // scope this on the user ID because people may login on many accounts