smtp-connection
Advanced tools
Comparing version 3.0.1 to 3.1.0
# Changelog | ||
## v3.1.0 2016-12-21 | ||
* use setKeepAlive(true) on newly created sockets | ||
## v3.0.1 2016-12-09 | ||
@@ -4,0 +8,0 @@ |
@@ -220,3 +220,6 @@ 'use strict'; | ||
try { | ||
this._socket.connect(this.port, this.host, () => this._onConnect()); | ||
this._socket.connect(this.port, this.host, () => { | ||
this._socket.setKeepAlive(true); | ||
this._onConnect(); | ||
}); | ||
} catch (E) { | ||
@@ -233,3 +236,6 @@ return setImmediate(() => this._onError(E, 'ECONNECTION', false, 'CONN')); | ||
try { | ||
this._socket = tls.connect(this.port, this.host, opts, () => this._onConnect()); | ||
this._socket = tls.connect(this.port, this.host, opts, () => { | ||
this._socket.setKeepAlive(true); | ||
this._onConnect(); | ||
}); | ||
} catch (E) { | ||
@@ -241,3 +247,6 @@ return setImmediate(() => this._onError(E, 'ECONNECTION', false, 'CONN')); | ||
try { | ||
this._socket = net.connect(opts, () => this._onConnect()); | ||
this._socket = net.connect(opts, () => { | ||
this._socket.setKeepAlive(true); | ||
this._onConnect(); | ||
}); | ||
} catch (E) { | ||
@@ -244,0 +253,0 @@ return setImmediate(() => this._onError(E, 'ECONNECTION', false, 'CONN')); |
{ | ||
"name": "smtp-connection", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Connect to SMTP servers", | ||
@@ -35,3 +35,3 @@ "main": "lib/smtp-connection.js", | ||
"sinon": "^1.17.6", | ||
"smtp-server": "^1.16.1", | ||
"smtp-server": "^1.17.0", | ||
"xoauth2": "^1.2.0" | ||
@@ -38,0 +38,0 @@ }, |
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
74211
1526