whatap 0.4.71 → 0.4.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -154,7 +154,9 @@ var SecurityMaster = {
|
|
|
154
154
|
if(cb) cb();
|
|
155
155
|
}else{
|
|
156
156
|
conf.setProperty('node.clusterId', cluster.worker.id);
|
|
157
|
+
if(cb) cb();
|
|
157
158
|
//console.log('현재 프로젝트는 ' + cluster.worker.id + ' 입니다!!!!');
|
|
159
|
+
/*
|
|
158
160
|
ProcessSeq('whatap').accessAuth(function(pseq){
|
|
159
161
|
if(!pseq){
|
|
160
162
|
return;
|
|
@@ -163,6 +165,7 @@ var SecurityMaster = {
|
|
|
163
165
|
conf.setProperty('node.clusterId', pseq);
|
|
164
166
|
if(cb) cb();
|
|
165
167
|
});
|
|
168
|
+
*/
|
|
166
169
|
}
|
|
167
170
|
|
|
168
171
|
}
|
package/lib/net/tcp-session.js
CHANGED
|
@@ -42,7 +42,7 @@ TcpSession.prototype.open = function(cb){
|
|
|
42
42
|
}
|
|
43
43
|
if(this.isOpen()) {
|
|
44
44
|
++self.reconnectCnt;
|
|
45
|
-
if(self.reconnectCnt
|
|
45
|
+
if(self.reconnectCnt >= 3) {
|
|
46
46
|
self.close();
|
|
47
47
|
}
|
|
48
48
|
return cb(new Error('Already connected..'));
|
|
@@ -152,6 +152,7 @@ TcpSession.prototype.close = function(){
|
|
|
152
152
|
if(this.out){
|
|
153
153
|
this.out.destroy();
|
|
154
154
|
this.out = null;
|
|
155
|
+
this.reconnectCnt = 0;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
|
package/package.json
CHANGED