Comparing version 1.5.2 to 1.5.3
@@ -395,3 +395,3 @@ // Generated by CoffeeScript 1.7.1 | ||
} else if (this.config.options.port) { | ||
if (this.config.options.port < 0 || this.config.options.port > 65536) { | ||
if (this.config.options.port < 0 || this.config.options.port > 65536) { | ||
throw new RangeError("Port should be > 0 and < 65536"); | ||
@@ -626,3 +626,3 @@ } | ||
}; | ||
})(this)); | ||
})(this), this.config.options.connectTimeout); | ||
} | ||
@@ -634,3 +634,2 @@ }; | ||
this.socket = new Socket({}); | ||
this.socket.setKeepAlive(true, KEEP_ALIVE_INITIAL_DELAY); | ||
connectOpts = { | ||
@@ -743,2 +742,3 @@ host: this.config.server, | ||
Connection.prototype.socketConnect = function() { | ||
this.socket.setKeepAlive(true, KEEP_ALIVE_INITIAL_DELAY); | ||
this.closed = false; | ||
@@ -745,0 +745,0 @@ this.debug.log("connected to " + this.config.server + ":" + this.config.options.port); |
@@ -33,3 +33,3 @@ { | ||
], | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"main": "./lib/tedious.js", | ||
@@ -36,0 +36,0 @@ "repository": { |
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
190598