浏览代码

Not disconnect on 3rd PING failure

master
paweldomas 9 年前
父节点
当前提交
d62ad1c2fd
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      modules/xmpp/strophe.ping.js

+ 6
- 1
modules/xmpp/strophe.ping.js 查看文件

120
                         GlobalOnErrorHandler.callErrorHandler(
120
                         GlobalOnErrorHandler.callErrorHandler(
121
                             new Error(errmsg));
121
                             new Error(errmsg));
122
                         logger.error(errmsg, error);
122
                         logger.error(errmsg, error);
123
-                        self.connection.disconnect();
123
+                        // FIXME it doesn't help to disconnect when 3rd PING
124
+                        // times out, it only stops Strophe from retrying.
125
+                        // Not really sure what's the right thing to do in that
126
+                        // situation, but just closing the connection makes no
127
+                        // sense.
128
+                        //self.connection.disconnect();
124
                     } else {
129
                     } else {
125
                         logger.warn(errmsg, error);
130
                         logger.warn(errmsg, error);
126
                     }
131
                     }

正在加载...
取消
保存