You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2019/02/15 03:36:12 UTC

[ignite] branch master updated: IGNITE-9555 Web Console: Fixed handling of unexpected closed sockets.

This is an automated email from the ASF dual-hosted git repository.

akuznetsov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b63556  IGNITE-9555 Web Console: Fixed handling of unexpected closed sockets.
6b63556 is described below

commit 6b635567489322ba8bbac293571fa963dc057e2d
Author: Vasiliy Sisko <vs...@gridgain.com>
AuthorDate: Fri Feb 15 10:35:35 2019 +0700

    IGNITE-9555 Web Console: Fixed handling of unexpected closed sockets.
---
 modules/web-console/backend/app/browsersHandler.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/web-console/backend/app/browsersHandler.js b/modules/web-console/backend/app/browsersHandler.js
index 680e340..919b1f0 100644
--- a/modules/web-console/backend/app/browsersHandler.js
+++ b/modules/web-console/backend/app/browsersHandler.js
@@ -130,7 +130,12 @@ module.exports = {
             clusterChanged(account, cluster) {
                 const socks = this._browserSockets.get(account);
 
-                _.forEach(socks, (sock) => sock.emit('cluster:changed', cluster));
+                _.forEach(socks, (sock) => {
+                    if (sock)
+                        sock.emit('cluster:changed', cluster);
+                    else
+                        console.log(`Fount closed socket [account=${account}, cluster=${cluster}]`);
+                });
             }
 
             pushInitialData(sock) {