axon-secure
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -289,2 +289,3 @@ | ||
var retry = self.retry || self.get('retry timeout'); | ||
debug('%s retry connection in %sms', self.type, retry); | ||
setTimeout(function(){ | ||
@@ -295,3 +296,3 @@ debug('%s attempting reconnect', self.type); | ||
self.connect(port, host); | ||
self.retry = Math.min(max, retry * 1.5); | ||
self.retry = Math.round(Math.min(max, retry * 1.5)); | ||
}, retry); | ||
@@ -364,4 +365,6 @@ } | ||
debug('%s connect attempt %s:%s', self.type, host, port); | ||
sock.connect(port, host); | ||
setImmediate(function () { | ||
debug('%s connect attempt %s:%s', self.type, host, port); | ||
sock.connect(port, host); | ||
}); | ||
return this; | ||
@@ -368,0 +371,0 @@ }; |
{ | ||
"name": "axon-secure", | ||
"description": "High-level messaging & socket patterns with optional encryption implemented in pure js", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"author": "Marcello Gesmundo <mgesmundo@yoovant.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
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
38794
1081