whatap 0.4.71 → 0.4.73

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.
@@ -33,7 +33,7 @@ var ConfigDefault = {
33
33
 
34
34
  "trace_service_name_header_key": null,
35
35
  "trace_service_name_key": null,
36
- "web_static_content_extensions": "js, htm, html, gif, png, jpg, css, txt",
36
+ "web_static_content_extensions": str("web_static_content_extensions" , "js, htm, html, gif, png, jpg, css, txt, ico"),
37
37
  "trace_auto_service_enabled": false,
38
38
  "trace_auto_service_backstack_enabled": true,
39
39
  "trace_background_socket_enabled": true,
@@ -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
  }
@@ -42,7 +42,7 @@ TcpSession.prototype.open = function(cb){
42
42
  }
43
43
  if(this.isOpen()) {
44
44
  ++self.reconnectCnt;
45
- if(self.reconnectCnt === 3) {
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
 
@@ -37,7 +37,7 @@ var TraceContextManager = require('../trace/trace-context-manager'),
37
37
  KeyGen = require('../util/keygen'),
38
38
  Logger = require('../logger');
39
39
 
40
- var _exts=new Set([".css",".js",".png"]);
40
+ var _exts=new Set([".css",".js",".png", ".htm", ".html", ".gif", ".jpg", ".css", ".txt", ".ico"]);
41
41
 
42
42
  var configIpHeaderKey = conf.trace_http_client_ip_header_key;
43
43
  var configUserAgentKey = undefined;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "0.4.71",
5
- "releaseDate": "20230403",
4
+ "version": "0.4.73",
5
+ "releaseDate": "20230510",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",
8
8
  "scripts": {},