smtp-connection
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "smtp-connection", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Connect to SMTP servers", | ||
@@ -5,0 +5,0 @@ "main": "src/smtp-connection.js", |
@@ -77,8 +77,2 @@ 'use strict'; | ||
/** | ||
* Ignore incoming data on TLS negotiation | ||
* @private | ||
*/ | ||
this._ignoreData = false; | ||
/** | ||
* Store incomplete messages coming from the server | ||
@@ -337,3 +331,3 @@ * @private | ||
SMTPConnection.prototype._onData = function(chunk) { | ||
if (this._ignoreData || this._destroyed || !chunk || !chunk.length) { | ||
if (this._destroyed || !chunk || !chunk.length) { | ||
return; | ||
@@ -459,5 +453,3 @@ } | ||
SMTPConnection.prototype._upgradeConnection = function(callback) { | ||
this._ignoreData = true; | ||
this._socket.removeAllListeners('data'); | ||
this._socket.removeAllListeners('error'); | ||
this._socket.removeAllListeners(); | ||
@@ -474,3 +466,2 @@ var opts = { | ||
this._socket = tls.connect(opts, function() { | ||
this._ignoreData = false; | ||
this.secure = true; | ||
@@ -477,0 +468,0 @@ this._socket.on('data', this._onData.bind(this)); |
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
42577
966