Skip to content

Commit

Permalink
Merge pull request #35 from prlanzarin/v2.3.11
Browse files Browse the repository at this point in the history
Version 2.3.11
  • Loading branch information
antobinary authored Jul 29, 2019
2 parents 4255255 + 246ba08 commit 01a54eb
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 101 deletions.
5 changes: 3 additions & 2 deletions lib/mcs-core/lib/media/balancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const KMS_ARRAY = config.get('kurento');
const VIDEO_TRANSPOSING_CEILING = config.get('video-transposing-ceiling');
const AUDIO_TRANSPOSING_CEILING = config.get('audio-transposing-ceiling');
const KMS_FAIL_AFTER = 5;
const KMS_FAILOVER_TIMEOUT_MS = 15000;

let instance = null;

Expand Down Expand Up @@ -68,7 +69,7 @@ class Balancer extends EventEmitter {
});

const failOver = new Promise((resolve, reject) => {
setTimeout(reject, 5000, 'connectionTimeout');
setTimeout(reject, KMS_FAILOVER_TIMEOUT_MS, 'connectionTimeout');
});

return Promise.race([connect, failOver]);
Expand Down Expand Up @@ -197,7 +198,7 @@ class Balancer extends EventEmitter {
});

const failOver = new Promise((resolve, reject) => {
setTimeout(reject, 5000, 'connectionTimeout');
setTimeout(reject, KMS_FAILOVER_TIMEOUT_MS, 'connectionTimeout');
});

Promise.race([connect, failOver]).then(h => {
Expand Down
181 changes: 83 additions & 98 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbb-webrtc-sfu",
"version": "2.3.10",
"version": "2.3.11",
"private": true,
"scripts": {
"start": "node server.js"
Expand Down

0 comments on commit 01a54eb

Please sign in to comment.