Comparing version 1.1.7 to 1.1.8
@@ -12,6 +12,8 @@ var net = require('net'), | ||
log : log, | ||
retriesRemaining:0 | ||
retriesRemaining:config.maxRetries||0 | ||
} | ||
new pubsub(client); | ||
console.log(this) | ||
return client; | ||
@@ -82,11 +84,15 @@ } | ||
function(){ | ||
client.log('connection closed'.notice ,client.id.variable , client.path.variable); | ||
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.retriesRemaining+' of '+client.config.maxRetries); | ||
if(client.stopRetrying || client.retriesRemaining<1){ | ||
if(client.config.maxRetries){ | ||
client.log(client.config.id.variable,'exceeded connection rety amount of'.warn,client.config.stopRetrying, " or stopRetrying flag set."); | ||
client.socket.destroy(); | ||
client=undefined; | ||
return; | ||
} | ||
if(client.config.stopRetrying || client.retriesRemaining<1){ | ||
client.log( | ||
client.config.id.variable, | ||
'exceeded connection rety amount of'.warn, | ||
" or stopRetrying flag set." | ||
); | ||
client.socket.destroy(); | ||
client=undefined; | ||
return; | ||
} | ||
@@ -93,0 +99,0 @@ |
{ | ||
"name": "node-ipc", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", | ||
@@ -12,3 +12,3 @@ "main": "node-ipc.js", | ||
"colors": "~0.6.2", | ||
"node-cmd" : "~1.0.1" | ||
"node-cmd": "~1.0.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": {}, |
@@ -7,3 +7,4 @@ var ipc = require('../node-ipc'), | ||
fails=[], | ||
passes=[]; | ||
passes=[], | ||
debug=true; | ||
@@ -165,3 +166,4 @@ ipc.config.id = 'testHarness'; | ||
process.exit(0); | ||
if(!debug) | ||
process.exit(0); | ||
} |
@@ -41,2 +41,3 @@ var ipc = require('../../../node-ipc'); | ||
} | ||
); | ||
); | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76557
29
1664